/* ==================== GENERAL ==================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== LOGIN WRAPPER ==================== */

.login-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 440px;
}

/* ==================== LOGO ==================== */

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

    .login-logo i {
        font-size: 48px;
        color: #153979;
        margin-bottom: 12px;
    }

    .login-logo h1 {
        font-size: 28px;
        font-weight: 700;
        color: #222;
    }

/* ==================== LOGIN CARD ==================== */

.login-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 40px;
}

.card-header {
    text-align: center;
    margin-bottom: 32px;
}

    .card-header h2 {
        font-size: 24px;
        font-weight: 700;
        color: #222;
        margin-bottom: 8px;
    }

    .card-header p {
        font-size: 14px;
        color: #666;
    }

/* ==================== ALERT ERROR ==================== */

.alert-error {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-left: 4px solid #f56565;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error i {
    color: #f56565;
    font-size: 18px;
}

.alert-error span {
    color: #742a2a;
    font-size: 14px;
    font-weight: 500;
}

/* ==================== FORM ==================== */

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        font-weight: 600;
        color: #444;
        margin-bottom: 8px;
    }

        .form-group label i {
            color: #153979;
            font-size: 14px;
        }

.form-input,
.form-select {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    background: #fff;
    transition: all 0.3s ease;
}

    .form-input:hover,
    .form-select:hover {
        border-color: #153979;
    }

    .form-input:focus,
    .form-select:focus {
        outline: none;
        border-color: #153979;
        box-shadow: 0 0 0 3px rgba(21, 57, 121, 0.08);
    }

    .form-input::placeholder {
        color: #aaa;
    }

/* Password Wrapper */
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
}

    .toggle-password:hover {
        color: #153979;
    }

    .toggle-password i {
        font-size: 16px;
    }

/* Checkbox Group */
.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #153979;
    flex-shrink: 0;
}

.checkbox-label {
    margin-left: 8px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
}

/* ==================== BUTTONS ==================== */

.btn-login {
    width: 100%;
    padding: 14px 24px;
    background: #153979;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(21, 57, 121, 0.2);
    margin-bottom: 12px;
}

    .btn-login:hover {
        background: #0f2a5a;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(21, 57, 121, 0.3);
    }

    .btn-login:active {
        transform: translateY(0);
    }

    .btn-login i {
        font-size: 18px;
    }

.btn-desktop {
    width: 100%;
    padding: 12px 24px;
    background: #fff;
    color: #666;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

    .btn-desktop:hover {
        background: #f8f9fa;
        border-color: #999;
        color: #333;
        text-decoration: none;
    }

    .btn-desktop i {
        font-size: 16px;
    }

/* ==================== FOOTER ==================== */

.login-footer {
    text-align: center;
    margin-top: 24px;
}

    .login-footer p {
        font-size: 13px;
        color: #999;
    }

/* ==================== RESPONSIVE ==================== */

@media (max-width: 767px) {
    .login-card {
        padding: 32px 24px;
    }

    .card-header h2 {
        font-size: 22px;
    }

    .login-logo h1 {
        font-size: 24px;
    }

    .login-logo i {
        font-size: 40px;
    }
}

@media (max-width: 499px) {
    body {
        padding: 0;
    }

    .login-wrapper {
        padding: 16px;
    }

    .login-card {
        padding: 28px 20px;
    }

    .card-header h2 {
        font-size: 20px;
    }

    .form-input,
    .form-select {
        font-size: 14px;
        padding: 12px 14px;
    }

    .btn-login,
    .btn-desktop {
        font-size: 15px;
        padding: 13px 20px;
    }
}
