/* ============================================================
   EVENTO — Custom Authentication UI (Premium Mobile-First)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Keyframes ─────────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.45; transform: scale(1); }
    50%      { opacity: 0.7;  transform: scale(1.08); }
}

@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center;  }
}

/* ── Base ───────────────────────────────────────────────────── */
.evento-auth-body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #f8f9ff;
    color: #1e293b;
    min-height: 100vh;
}

/* ── Layout ─────────────────────────────────────────────────── */
.auth-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(165deg, #0d0c13 0%, #141225 55%, #1a1640 100%);
}

/* ── Left Panel (Branding) ──────────────────────────────────── */
.auth-left {
    flex: 1;
    position: relative;
    background: transparent;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 4rem;
    border-right: none;
}

.auth-bg-glow {
    position: absolute;
    width: 120vw;
    height: 120vh;
    background: radial-gradient(
        circle at center,
        rgba(79, 70, 229, 0.25) 0%,
        rgba(139, 92, 246, 0.08) 40%,
        transparent 70%
    );
    top: -10vh;
    left: -10vw;
    z-index: 0;
    pointer-events: none;
    animation: glowPulse 6s ease-in-out infinite;
}

.auth-left-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.auth-logo {
    display: inline-block;
    margin-bottom: 5rem;
}

.auth-title {
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
    letter-spacing: -1px;
}

.auth-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin-bottom: 4rem;
}

/* ── Features Row ───────────────────────────────────────────── */
.auth-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-feature {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.auth-feature:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(79, 70, 229, 0.4);
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(79, 70, 229, 0.2);
    color: #a5b4fc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 1.25rem;
}

.feature-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

.feature-text strong {
    color: #ffffff;
    font-size: 0.95rem;
}

/* ── Right Panel (Form) ─────────────────────────────────────── */
.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 3rem;
}

.auth-form-container {
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 28px;
    padding: 3rem 2.5rem;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    animation: fadeInUp 0.5s 0.15s ease-out both;
}

/* ── Form Overrides (Bootstrap light-mode tweaks) ───────────── */
.evento-auth-body .card,
.evento-auth-body form {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.evento-auth-body h5,
.evento-auth-body h4,
.evento-auth-body .text-dark {
    color: #1e293b !important;
}

.evento-auth-body .text-muted {
    color: #64748b !important;
}

/* ── Inputs ─────────────────────────────────────────────────── */
.evento-auth-body .form-control {
    background-color: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    color: #1e293b !important;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.evento-auth-body .form-control:focus {
    background-color: #ffffff !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1) !important;
}

.evento-auth-body .form-floating > label {
    color: #64748b !important;
    padding: 1rem 1.25rem;
}

.evento-auth-body .form-floating > .form-control:focus ~ label,
.evento-auth-body .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: #4f46e5 !important;
    transform: scale(.85) translateY(-.5rem) translateX(.15rem);
}

/* ── Checkbox ───────────────────────────────────────────────── */
.evento-auth-body .form-check-input {
    background-color: #ffffff;
    border-color: #cbd5e1;
}
.evento-auth-body .form-check-input:checked {
    background-color: #4f46e5;
    border-color: #4f46e5;
}
.evento-auth-body .form-check-label {
    color: #475569;
}

/* ── Buttons ────────────────────────────────────────────────── */
.evento-auth-body .btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 14px;
    padding: 0.85rem;
    font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
    position: relative;
    overflow: hidden;
}

.evento-auth-body .btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.12) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

.evento-auth-body .btn-primary:hover {
    background: linear-gradient(135deg, #3730a3 0%, #4f46e5 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.evento-auth-body .btn-soft-primary {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    border: 1px solid #333 !important;
}

.evento-auth-body .btn-soft-primary:hover {
    background-color: #262626 !important;
}

/* ── Hide extra logos inside views ───────────────────────────── */
.evento-auth-body form > a > img.avatar {
    display: none !important;
}

/* ==============================================================
   MOBILE — TABLET RESPONSIVE  (≤ 991px)
   ============================================================== */
@media (max-width: 991px) {

    /* ── Wrapper ── */
    .auth-wrapper {
        flex-direction: column;
        background: linear-gradient(165deg, #0d0c13 0%, #141225 55%, #1a1640 100%);
        min-height: 100vh;
        overflow-x: hidden;
    }

    /* ── Left / Hero ── */
    .auth-left {
        flex: none;
        padding: 2.5rem 1.5rem 4.5rem;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        position: relative;
        overflow: hidden;
    }

    .auth-bg-glow {
        width: 300px;
        height: 300px;
        border-radius: 50%;
        top: -60px;
        left: 50%;
        transform: translateX(-50%);
        background: radial-gradient(
            circle,
            rgba(79, 70, 229, 0.35) 0%,
            rgba(139, 92, 246, 0.15) 45%,
            transparent 70%
        );
        animation: glowPulse 6s ease-in-out infinite;
    }

    .auth-left-content {
        max-width: 360px;
        animation: fadeInUp 0.6s ease-out both;
    }

    .auth-logo {
        margin-bottom: 1.25rem;
    }
    .auth-logo img {
        width: 100px !important;
        filter: brightness(0) invert(1) !important;
    }

    .auth-title {
        font-size: 1.6rem;
        margin-bottom: 0.4rem;
        letter-spacing: -0.5px;
        background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .auth-subtitle {
        font-size: 0.85rem;
        margin-bottom: 0;
        color: rgba(255, 255, 255, 0.5);
        line-height: 1.4;
    }
    .auth-subtitle br {
        display: none;
    }

    .auth-features {
        display: none !important;
    }

    /* ── Right / Form ── */
    .auth-right {
        flex: 1 1 auto;
        padding: 0;
        background: transparent;
        border-radius: 0;
        margin-top: -24px;
        z-index: 10;
        position: relative;
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }

    .auth-form-container {
        width: 100%;
        max-width: 100%;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 28px 28px 0 0;
        padding: 2rem 1.5rem 2.5rem;
        box-shadow:
            0 -8px 40px rgba(0, 0, 0, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
        min-height: calc(100vh - 220px);
        animation: fadeInUp 0.5s 0.15s ease-out both;
    }

    /* ── Pill indicator (sheet handle) ── */
    .auth-form-container::before {
        content: '';
        display: block;
        width: 36px;
        height: 4px;
        background: #cbd5e1;
        border-radius: 4px;
        margin: 0 auto 1.5rem;
    }

    /* ── Form title adjustments ── */
    .evento-auth-body h5 {
        font-size: 1.35rem !important;
        font-weight: 700 !important;
        margin-bottom: 0.25rem !important;
    }

    .evento-auth-body .text-muted.text-center.mb-4 {
        font-size: 0.82rem !important;
        margin-bottom: 1.25rem !important;
    }

    /* ── Inputs (touch-optimised) ── */
    .evento-auth-body .form-control {
        border-radius: 14px;
        padding: 1rem 1.15rem;
        font-size: 0.95rem;
        min-height: 54px;
        border: 1.5px solid #e2e8f0 !important;
        background: #f8fafc !important;
    }

    .evento-auth-body .form-control:focus {
        background: #ffffff !important;
        border-color: #4f46e5 !important;
        box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
    }

    .evento-auth-body .form-floating > label {
        padding: 1rem 1.15rem;
        font-size: 0.9rem;
    }

    /* ── Buttons (touch-optimised) ── */
    .evento-auth-body .btn-primary {
        border-radius: 14px;
        padding: 0.9rem;
        font-size: 0.95rem;
        font-weight: 600;
        letter-spacing: 0.01em;
        min-height: 50px;
        background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
        box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
        position: relative;
        overflow: hidden;
    }

    .evento-auth-body .btn-primary::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.15) 50%,
            transparent 100%
        );
        background-size: 200% 100%;
        animation: shimmer 3s ease-in-out infinite;
        pointer-events: none;
    }

    .evento-auth-body .btn-primary:hover,
    .evento-auth-body .btn-primary:active {
        transform: none;
        background: linear-gradient(135deg, #3730a3 0%, #4f46e5 100%) !important;
        box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    }

    /* ── Checkbox ── */
    .evento-auth-body .form-check-input {
        width: 18px;
        height: 18px;
        border-radius: 6px;
        margin-top: 0.15rem;
    }
    .evento-auth-body .form-check-label {
        font-size: 0.85rem;
        padding-left: 0.15rem;
    }

    /* ── "Remember / Forgot" row ── */
    .evento-auth-body .d-flex.justify-content-between {
        align-items: center;
        margin-bottom: 0.25rem;
    }
    .evento-auth-body .forgot-pass a,
    .evento-auth-body a.text-dark.small.fw-bold {
        font-size: 0.82rem !important;
        color: #4f46e5 !important;
        font-weight: 600 !important;
    }

    /* ── Alerts ── */
    .evento-auth-body .alert {
        border-radius: 14px;
        font-size: 0.85rem;
        padding: 0.85rem 1rem;
        border: none;
    }
    .evento-auth-body .alert-danger {
        background: #fef2f2;
        color: #991b1b;
    }
    .evento-auth-body .alert-success {
        background: #f0fdf4;
        color: #166534;
    }

    /* ── Footer / copyright ── */
    .evento-auth-body .text-muted.mt-3.text-center {
        font-size: 0.72rem !important;
        color: #94a3b8 !important;
        margin-top: 1.5rem !important;
        padding-top: 1rem;
        border-top: 1px solid #f1f5f9;
    }

    /* ── Back to login link ── */
    .evento-auth-body .text-center a.text-dark {
        color: #4f46e5 !important;
        font-weight: 600;
        font-size: 0.85rem;
    }
}

/* ==============================================================
   SMALL PHONES (≤ 420px)
   ============================================================== */
@media (max-width: 420px) {

    .auth-left {
        padding: 2rem 1.25rem 4rem;
    }

    .auth-logo img {
        width: 80px !important;
    }

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

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

    .auth-form-container {
        padding: 1.75rem 1.25rem 2rem;
        border-radius: 24px 24px 0 0;
    }

    .auth-form-container::before {
        width: 32px;
        margin-bottom: 1.25rem;
    }

    .evento-auth-body h5 {
        font-size: 1.2rem !important;
    }

    .evento-auth-body .form-control {
        min-height: 50px;
        font-size: 0.9rem;
    }

    .evento-auth-body .btn-primary {
        min-height: 48px;
        font-size: 0.9rem;
    }
}

/* ==============================================================
   LANDSCAPE MOBILE  (short height, ≤ 991px wide)
   ============================================================== */
@media (max-width: 991px) and (max-height: 500px) {

    .auth-left {
        padding: 1.25rem 1.5rem 2.5rem;
    }

    .auth-logo {
        margin-bottom: 0.5rem;
    }
    .auth-logo img {
        width: 60px !important;
    }

    .auth-title {
        font-size: 1.15rem;
        margin-bottom: 0.25rem;
    }

    .auth-subtitle {
        display: none;
    }

    .auth-form-container {
        min-height: auto;
        padding: 1.5rem 1.25rem;
        border-radius: 20px 20px 0 0;
    }

    .auth-form-container::before {
        display: none;
    }
}
