﻿.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 2rem 1rem;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-icon {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 1rem;
}

.auth-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #64748b;
    font-size: 0.875rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: all 250ms ease-in-out;
    background: #f8fafc;
}

    .form-input:focus {
        outline: none;
        border-color: #2563eb;
        background: white;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }

    .form-input.is-invalid {
        border-color: #ef4444;
        background: #fef2f2;
    }

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    cursor: pointer;
    accent-color: #2563eb;
}

.form-check-label {
    cursor: pointer;
    color: #334155;
    font-size: 0.875rem;
}

.submit-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 250ms ease-in-out;
    margin-bottom: 1.5rem;
}

    .submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 15px rgba(37, 99, 235, 0.3);
    }

.auth-divider {
    border-top: 1px solid #e2e8f0;
    margin: 1.5rem 0;
}

.auth-link-section {
    text-align: center;
    margin-bottom: 1rem;
}

.auth-link-text {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.auth-link {
    display: inline-block;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #dbeafe;
    border-radius: 0.375rem;
    transition: all 150ms ease-in-out;
}

    .auth-link:hover {
        background: #eff6ff;
        border-color: #2563eb;
    }

.forgot-password {
    text-align: center;
}

    .forgot-password a {
        color: #ef4444;
        font-weight: 600;
        text-decoration: none;
        transition: all 150ms ease-in-out;
    }

        .forgot-password a:hover {
            text-decoration: underline;
        }

.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    font-size: 0.875rem;
}

.alert-danger {
    background: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

.alert-success {
    background: #f0fdf4;
    border-color: #22c55e;
    color: #166534;
}

.alert-info {
    background: #f0f9ff;
    border-color: #2563eb;
    color: #0c4a6e;
}

.alert-close {
    cursor: pointer;
    float: right;
    font-size: 1.5rem;
    line-height: 1;
}

.security-info {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #2563eb;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #0c4a6e;
}

.invalid-feedback {
    display: block;
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem;
    }

    .auth-title {
        font-size: 1.5rem;
    }
}

.login-message {
    margin-bottom: 15px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
}

    .login-message.error {
        background: #fef2f2;
        border: 1px solid #fecaca;
        color: #dc2626;
    }

    .login-message.success {
        background: #ecfdf5;
        border: 1px solid #bbf7d0;
        color: #16a34a;
    }

JavaScript
function showMessage(message, isSuccess) {
    $("#loginMessage") .removeClass("error success") .addClass(isSuccess ? "success" : "error") .html(message) .show();
}

/* Labels */
.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1e3a5f;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Common Input Style */
.form-control,
.form-input {
    width: 100%;
    height: 58px;
    padding: 0 18px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #0f172a;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
    transition: all 0.2s ease;
}

    .form-control:focus,
    .form-input:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 4px rgba(37,99,235,.15);
        outline: none;
    }

/* OTP Input */
#otp {
    text-align: center;
    letter-spacing: 6px;
}

/* Readonly Email */
#email[readonly] {
    background: #f8fafc;
    color: #334155;
}
