:root {
    --eb-accent: #00D4AA;
    --eb-purple: #7B61FF;
    --eb-dark: #0a0a1a;
}

body.auth-body {
    font-family: 'Tajawal', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--eb-dark) 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2.5rem;
    color: #fff;
}

.auth-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--eb-accent), var(--eb-purple));
    border-radius: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    animation: logo-float 3s ease-in-out infinite;
}

.auth-logo i {
    display: inline-block;
    animation: logo-pulse 2.2s ease-in-out infinite;
}

.auth-card .form-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.9rem;
}

.auth-card .form-control {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 0.75rem;
    padding: 0.625rem 1rem;
}

.auth-card .form-control::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.auth-card .form-control:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--eb-accent);
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 170, 0.15);
    color: #fff;
}

.auth-card .input-group-text {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
}

.auth-card .btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
}

.auth-card .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.auth-card .btn-success {
    background: linear-gradient(135deg, var(--eb-accent), var(--eb-purple));
    border: none;
    border-radius: 0.75rem;
    font-size: 1.05rem;
    min-height: 56px;
    transition: opacity 0.2s, transform 0.2s;
}

.auth-card .btn-success:hover {
    opacity: 0.9;
}

.auth-card .form-text {
    color: rgba(255, 255, 255, 0.4);
}

.auth-card .alert-danger {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff6b6b;
}

.auth-card .auth-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.auth-card .whatsapp-group {
    direction: rtl;
}

.auth-card .whatsapp-group .input-group-text,
.auth-card .password-group .btn {
    width: 44px;
    justify-content: center;
    padding-inline: 0;
}

.auth-card .whatsapp-group .input-group-text {
    border-radius: 0.75rem 0 0 0.75rem;
    border-inline-end: 0;
}

.auth-card .whatsapp-group .form-control {
    direction: ltr;
    text-align: left;
}

.auth-card .whatsapp-group .whatsapp-prefix {
    font-weight: 700;
}

.auth-card .alert {
    transition: opacity 0.25s ease;
}

.auth-card .alert.fade {
    opacity: 0;
}

.auth-card .btn:disabled {
    opacity: 0.95;
}

.bot-wave {
    display: inline-block;
    transform-origin: 70% 70%;
    animation: bot-wave 0.9s ease-in-out infinite;
}

.success-pop {
    display: inline-block;
    animation: success-pop 0.45s ease;
}

@keyframes bot-wave {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(14deg); }
    50% { transform: rotate(-10deg); }
    75% { transform: rotate(14deg); }
    100% { transform: rotate(0deg); }
}

@keyframes success-pop {
    0% { transform: scale(0.4); opacity: 0; }
    70% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

body.auth-body::before,
body.auth-body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
}

body.auth-body::before {
    background-image:
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.08) 0px,
            rgba(255, 255, 255, 0.08) 1px,
            transparent 1px,
            transparent 54px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.07) 0px,
            rgba(255, 255, 255, 0.07) 1px,
            transparent 1px,
            transparent 54px
        );
    opacity: 0.32;
}

body.auth-body::after {
    content: none;
}

.auth-container {
    position: relative;
    z-index: 1;
}


@keyframes logo-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes logo-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
