/**
 * Unified Auth Pages Design
 * تصميم موحد لصفحات المصادقة - يتناسق مع التصميم الرئيسي
 */

/* ==================== CSS Variables - Main Theme ==================== */
/* :root variables moved to variables.css */

/* ==================== Reset & Base ==================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* ==================== Background Pattern ==================== */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 8s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

body::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
    top: -200px;
    right: -200px;
}

body::after {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.4) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    animation-delay: -4s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(5deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
}

/* ==================== Top Bar ==================== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 2rem;
    background: var(--bg-sidebar);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: var(--glass-border);
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--primary-light);
    transform: translateX(-3px);
}

.back-link i {
    font-size: 0.85rem;
}

/* ==================== Container ==================== */
.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 6rem 1rem 2rem;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== Card ==================== */
.auth-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-2xl);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0.6;
}

/* ==================== Header ==================== */
.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-logo,
.whatsapp-logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.auth-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    animation: logoFloat 3s ease-in-out infinite;
}

.whatsapp-logo {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--whatsapp-primary), var(--whatsapp-primary-dark));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    position: relative;
    z-index: 2;
    animation: logoFloat 3s ease-in-out infinite;
}

.logo-pulse {
    position: absolute;
    inset: -10px;
    border-radius: var(--radius-full);
    background: var(--whatsapp-primary);
    opacity: 0.3;
    animation: pulse 2s ease-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.1;
    }

    100% {
        transform: scale(1);
        opacity: 0.3;
    }
}

.auth-title {
    font-size: 1.875rem;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 50%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 400;
}

/* ==================== Steps ==================== */
.whatsapp-step {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.whatsapp-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ==================== Forms ==================== */
.auth-form {
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.form-label i {
    color: var(--primary-color);
    font-size: 1rem;
}

.required-star {
    color: var(--danger-color);
    margin-right: 0.25rem;
}

/* ==================== Input Wrapper ==================== */
.input-wrapper,
.phone-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.phone-input-wrapper {
    background: var(--bg-input);
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.phone-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.phone-prefix {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    font-weight: 700;
    font-size: 1.1rem;
    border-left: 2px solid rgba(148, 163, 184, 0.2);
    white-space: nowrap;
    min-width: 80px;
    justify-content: center;
    user-select: none;
    pointer-events: none;
}

.phone-prefix i {
    font-size: 0.9rem;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition);
}

/* ==================== Form Input ==================== */
.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-input);
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;
    font-weight: 500;
    transition: var(--transition);
    min-height: 52px;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-input.valid {
    border-color: var(--secondary-color);
}

.form-input.error {
    border-color: var(--danger-color);
    animation: shake 0.4s ease-out;
}

.phone-input {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    flex: 1;
    padding-right: 3rem;
    color: var(--text-main) !important;
}

.phone-input:focus {
    box-shadow: none !important;
    background: transparent !important;
}

#phone-valid-icon {
    position: absolute;
    left: 1rem;
    color: var(--secondary-color);
    font-size: 1.25rem;
}

/* ==================== Code Input ==================== */
.code-input-wrapper {
    position: relative;
}

.code-input {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5rem;
    padding: 1rem;
    font-family: 'Inter', monospace;
}

.code-dots {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 0.75rem;
    pointer-events: none;
    z-index: -1;
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: rgba(148, 163, 184, 0.3);
    transition: var(--transition);
}

.code-dot.filled {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* ==================== Error Message ==================== */
.error-message {
    display: block;
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    text-align: right;
    min-height: 1.25rem;
}

.error-message:empty {
    display: none;
}

.error-message.show {
    animation: shake 0.4s ease-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

/* ==================== Form Help ==================== */
.form-help,
.form-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.form-help i,
.form-hint i {
    font-size: 0.75rem;
}

/* ==================== Success Message ==================== */
.success-message {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--secondary-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 2rem;
    animation: slideDown 0.4s ease-out;
}

.success-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--secondary-color);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.success-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.success-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== Checkbox ==================== */
.remember-group {
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
}

.checkbox-input {
    display: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(148, 163, 184, 0.3);
    border-radius: var(--radius-sm);
    position: relative;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--bg-input);
}

.checkbox-input:checked+.checkbox-custom {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-input:checked+.checkbox-custom i {
    display: block;
    color: white;
    font-size: 0.75rem;
}

.checkbox-custom i {
    display: none;
}

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    min-height: 52px;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover:not(:disabled)::before {
    width: 300px;
    height: 300px;
}

.btn-content,
.btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(-1px);
}

.btn-whatsapp-primary {
    background: linear-gradient(135deg, var(--whatsapp-primary), var(--whatsapp-primary-dark));
    color: white;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp-secondary {
    background: var(--glass-bg);
    color: var(--whatsapp-primary);
    border: 2px solid var(--whatsapp-primary);
    margin-top: 0.75rem;
}

.btn-whatsapp-secondary:hover:not(:disabled) {
    background: rgba(37, 211, 102, 0.1);
    transform: translateY(-3px);
}

/* ==================== Social Login ==================== */
.social-login {
    margin-top: 2rem;
}

.social-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.social-divider span {
    padding: 0 1rem;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-social {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 48px;
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.btn-social:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-social i {
    font-size: 1.25rem;
}

.btn-google {
    border-color: rgba(234, 67, 53, 0.3);
    color: #ea4335;
}

.btn-google:hover {
    background: rgba(234, 67, 53, 0.1);
    border-color: #ea4335;
    color: #fff;
    box-shadow: 0 4px 12px rgba(234, 67, 53, 0.3);
}

.btn-whatsapp {
    border-color: rgba(37, 211, 102, 0.3);
    color: #25d366;
}

.btn-whatsapp:hover {
    background: rgba(37, 211, 102, 0.1);
    border-color: #25d366;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* ==================== Alert Messages ==================== */
.alert {
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    border: 2px solid;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.alert-error-box {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.4);
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.2);
    animation: slideDown 0.4s ease-out;
    overflow: hidden;
}

.alert-error-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(239, 68, 68, 0.1);
    border-bottom: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-error-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--danger-color);
    font-size: 1.25rem;
}

.alert-error-title {
    flex: 1;
    text-align: right;
}

.alert-error-title strong {
    display: block;
    color: var(--danger-color);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.alert-error-title p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

.alert-error-close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1rem;
}

.alert-error-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
}

.alert-error-body {
    padding: 1.25rem;
}

.alert-error-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

.alert-error-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: var(--text-main);
    font-size: 0.9rem;
    line-height: 1.6;
}

.alert-error-list li:not(:last-child) {
    border-bottom: 1px solid rgba(239, 68, 68, 0.1);
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
}

.alert-error-list li i {
    color: var(--danger-color);
    font-size: 0.75rem;
    margin-top: 0.375rem;
    flex-shrink: 0;
}

.alert-error-list li span {
    flex: 1;
}

/* ==================== File Upload ==================== */
.file-upload-wrapper {
    width: 100%;
}

.file-upload {
    position: relative;
    width: 100%;
    min-height: 180px;
    background: var(--bg-input);
    border: 2px dashed rgba(148, 163, 184, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
}

.file-upload:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-2px);
}

.file-upload.drag-over {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    border-style: solid;
    transform: scale(1.02);
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload-content {
    text-align: center;
    padding: 1.5rem;
    z-index: 2;
    position: relative;
}

.file-upload-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.file-upload-text {
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 500;
    margin: 0.25rem 0;
}

.upload-link {
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
    transition: var(--transition);
}

.upload-link:hover {
    color: var(--primary-light);
}

.file-upload-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.file-upload-overlay {
    position: absolute;
    inset: 0;
    background: rgba(99, 102, 241, 0.2);
    backdrop-filter: blur(4px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
    border-radius: var(--radius-md);
}

.file-upload.drag-over .file-upload-overlay {
    display: flex;
}

.file-upload-overlay i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: pulse 1.5s ease-in-out infinite;
}

.file-upload-overlay p {
    color: var(--text-main);
    font-size: 1.25rem;
    font-weight: 600;
}

.file-preview {
    display: none;
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    position: absolute;
    inset: 0;
    z-index: 1;
}

.file-preview.show {
    display: block;
}

.file-info {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-sm);
}

.file-info-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--secondary-color);
}

.file-info-content i {
    font-size: 1.25rem;
}

.file-info-content span {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
}

.file-remove-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger-color);
    border-radius: var(--radius-sm);
    padding: 0.375rem 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
}

.file-remove-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: scale(1.05);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* ==================== Footer ==================== */
.auth-footer {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: var(--glass-border);
    text-align: center;
}

.footer-icon {
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.auth-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0.5rem 0;
    line-height: 1.6;
}

.footer-security {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-footer a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.auth-footer a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ==================== Responsive ==================== */
@media (max-width: 640px) {
    .auth-container {
        padding: 5rem 1rem 1.5rem;
    }

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

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

    .auth-logo,
    .whatsapp-logo {
        width: 75px;
        height: 75px;
        font-size: 2rem;
    }

    .form-input {
        font-size: 0.95rem;
        min-height: 48px;
    }

    .code-input {
        font-size: 1.25rem;
        letter-spacing: 0.25rem;
    }

    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
        min-height: 48px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem 1rem;
    }

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

    .auth-subtitle {
        font-size: 0.9rem;
    }

    .auth-logo,
    .whatsapp-logo {
        width: 65px;
        height: 65px;
        font-size: 1.75rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }
}

/* ==================== Focus States ==================== */
*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

html {
    scroll-behavior: smooth;
}