/* Authentication Pages - Visual Identity Aligned */
/* Matches main site theme: Black, White & Blue */

.auth-container {
    min-height: calc(100vh - 150px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    background: #FFFFFF;
}

.auth-card {
    background: white;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #E0E0E0;
}

.auth-header {
    padding: 2.5rem 2rem;
    background: #000000;
    color: white;
    text-align: center;
    border-bottom: 3px solid #0056b3;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.auth-logo-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0056b3;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: 'Tajawal', sans-serif;
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-top: 0;
    font-family: 'Tajawal', sans-serif;
}

.auth-header p {
    font-size: 0.95rem;
    opacity: 0.85;
    font-weight: 400;
    margin: 0;
}

.auth-subtitle {
    font-size: 0.95rem;
    opacity: 0.85;
    font-weight: 400;
}

.auth-body {
    padding: 2rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 600;
    color: #333333;
    font-size: 0.95rem;
    font-family: 'Tajawal', sans-serif;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    background: #f8f9fa;
    font-family: 'Tajawal', sans-serif;
    color: #333333;
}

.form-input:focus {
    outline: none;
    border-color: #0056b3;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.form-input::placeholder {
    color: #999999;
}

.btn-auth {
    width: 100%;
    padding: 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #0056b3;
    color: white;
    font-family: 'Tajawal', sans-serif;
    margin-top: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 86, 179, 0.2);
}

.btn-auth:hover {
    background: #003d82;
    box-shadow: 0 4px 8px rgba(0, 86, 179, 0.3);
    transform: translateY(-1px);
}

.auth-footer {
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    text-align: center;
    border-top: 1px solid #E0E0E0;
}

.auth-footer p {
    margin: 0;
    color: #555555;
    font-size: 0.95rem;
}

.auth-link {
    color: #0056b3;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-link:hover {
    color: #003d82;
    text-decoration: underline;
}

.forgot-password {
    text-align: center;
    margin-top: 0.75rem;
}

.forgot-password a {
    color: #555555;
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.alert {
    padding: 1rem 1.25rem;
    margin: 1.5rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-info {
    background-color: #e3f2fd;
    color: #0056b3;
    border: 1px solid #90caf9;
}

.btn-resend {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid #0056b3;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    color: #0056b3;
    font-family: 'Tajawal', sans-serif;
    box-shadow: 0 2px 4px rgba(0, 86, 179, 0.1);
}

.btn-resend:hover {
    background: #0056b3;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 86, 179, 0.2);
    transform: translateY(-1px);
}

.btn-resend:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 86, 179, 0.1);
}

.terms-text {
    font-size: 0.875rem;
    color: #555555;
    line-height: 1.6;
    margin-top: 1rem;
    text-align: center;
    padding: 0 0.5rem;
}

.terms-text a {
    color: #0056b3;
    text-decoration: none;
    font-weight: 500;
}

.terms-text a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .auth-container {
        padding: 2rem 1rem;
        min-height: calc(100vh - 120px);
    }

    .auth-card {
        max-width: 100%;
    }

    .auth-header {
        padding: 2rem 1.5rem;
    }

    .auth-header h1 {
        font-size: 1.5rem;
    }

    .auth-body {
        padding: 1.5rem;
    }

    .auth-form {
        padding: 1.5rem;
        gap: 1rem;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .auth-footer {
        padding: 1.25rem 1.5rem;
    }

    .form-input {
        padding: 0.75rem 0.875rem;
        font-size: 0.95rem;
    }

    .btn-auth {
        padding: 0.875rem;
        font-size: 1rem;
    }
}
