/**
 * TV WANDAM — Portal, splash e login (animações de entrada)
 */

/* ── Utilitários de animação ── */
@keyframes authFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes authFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes authScaleIn {
    from { opacity: 0; transform: scale(.82); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes authLogoFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
@keyframes authShimmer {
    0%   { transform: translateX(-120%) skewX(-12deg); }
    100% { transform: translateX(220%) skewX(-12deg); }
}
@keyframes authGradientShift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}
@keyframes authOrbDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(12px, -18px) scale(1.05); }
    66%      { transform: translate(-10px, 10px) scale(.95); }
}
@keyframes authRingPulse {
    0%   { transform: scale(.35); opacity: 0; }
    25%  { opacity: .85; }
    100% { transform: scale(3.4); opacity: 0; }
}
@keyframes authLetterPop {
    0%   { opacity: 0; transform: translateY(50px) scale(.4) rotate(-8deg); }
    70%  { transform: translateY(-6px) scale(1.08) rotate(0deg); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes authTwGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(255,255,255,.35)); }
    50%      { filter: drop-shadow(0 0 40px rgba(255,255,255,.65)); }
}
@keyframes authIntroMesh {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: .9; }
    50%      { transform: translate(-3%, 2%) scale(1.06); opacity: 1; }
}
@keyframes authIntroOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(18px, -22px) scale(1.12); }
}
@keyframes authIntroParticle {
    0%   { opacity: 0; transform: translateY(20px) scale(.6); }
    20%  { opacity: .85; }
    100% { opacity: 0; transform: translateY(-80px) scale(1); }
}
@keyframes authIntroHalo {
    0%   { transform: scale(.7) rotate(0deg); opacity: 0; }
    30%  { opacity: .75; }
    100% { transform: scale(1.35) rotate(180deg); opacity: 0; }
}
@keyframes authIntroLogoHero {
    0%   { opacity: 0; transform: scale(.55); filter: blur(12px); }
    55%  { transform: scale(1.07); filter: blur(0); }
    100% { opacity: 1; transform: scale(1); filter: blur(0); }
}
@keyframes authIntroShinePass {
    0%   { transform: translateX(-140%) skewX(-18deg); opacity: 0; }
    30%  { opacity: .7; }
    100% { transform: translateX(180%) skewX(-18deg); opacity: 0; }
}
@keyframes authIntroBrandIn {
    0%   { opacity: 0; transform: translateY(18px); letter-spacing: .35em; }
    100% { opacity: 1; transform: translateY(0); letter-spacing: .22em; }
}
@keyframes authIntroBarFill {
    0%   { width: 0; }
    100% { width: 100%; }
}
@keyframes authIntroExitZoom {
    0%   { opacity: 1; transform: scale(1); filter: blur(0); }
    100% { opacity: 0; transform: scale(1.08); filter: blur(14px); visibility: hidden; }
}
@keyframes authIntroStageIn {
    from { opacity: 0; transform: scale(.92); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes authLogoReveal {
    0%   { opacity: 0; transform: scale(.5) rotate(-12deg); }
    60%  { transform: scale(1.06) rotate(3deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes authOverlayOut {
    to { opacity: 0; visibility: hidden; }
}
@keyframes authSweep {
    0%   { left: -30%; opacity: 0; }
    15%  { opacity: .5; }
    100% { left: 130%; opacity: 0; }
}
@keyframes authCardIn {
    from { opacity: 0; transform: translateY(24px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes authBtnShine {
    0%   { left: -100%; }
    100% { left: 200%; }
}

.auth-anim {
    opacity: 0;
    animation: authFadeUp .85s cubic-bezier(.22, 1, .36, 1) forwards;
    animation-delay: var(--delay, 0s);
}

/* ══════════════════════════════════════
   PORTAL / INDEX
   ══════════════════════════════════════ */
.splash-page {
    overflow-x: hidden;
    background: #eef0f3;
}

.splash {
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
}

/* ── Painel esquerdo (marca) ── */
.splash-left {
    flex: 1.05;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 36px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: #101412;
    color: #fff;
}

.splash-left-mesh {
    position: absolute;
    inset: -15%;
    background:
        radial-gradient(ellipse 60% 50% at 20% 30%, rgba(229, 57, 53, .5), transparent 55%),
        radial-gradient(ellipse 55% 45% at 85% 75%, rgba(67, 160, 71, .45), transparent 50%),
        radial-gradient(ellipse 45% 40% at 55% 15%, rgba(251, 192, 45, .3), transparent 45%),
        linear-gradient(155deg, #1a0c0c 0%, #0f1a12 50%, #141210 100%);
    animation: authIntroMesh 10s ease-in-out infinite;
}

.splash-left-grid {
    position: absolute;
    inset: 0;
    opacity: .06;
    background-image:
        linear-gradient(rgba(255,255,255,.9) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.9) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 75% 75% at 50% 45%, #000 15%, transparent 70%);
}

.splash-left-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
    pointer-events: none;
}
.splash-left-orb--1 {
    width: 260px; height: 260px;
    top: 8%; left: -10%;
    background: rgba(229, 57, 53, .32);
    animation: authIntroOrb 9s ease-in-out infinite;
}
.splash-left-orb--2 {
    width: 200px; height: 200px;
    bottom: 12%; right: -8%;
    background: rgba(67, 160, 71, .28);
    animation: authIntroOrb 11s ease-in-out -4s infinite;
}

.splash-brand-inner {
    position: relative;
    z-index: 2;
    max-width: 380px;
}

.splash-logo-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 22px;
}
.splash-logo-wrap::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .18);
    animation: authRingPulse 3.5s ease-out infinite;
}

.splash-logo {
    width: clamp(150px, 22vw, 210px);
    height: auto;
    display: block;
    border-radius: 50%;
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, .1),
        0 0 52px rgba(67, 160, 71, .28),
        0 22px 48px rgba(0, 0, 0, .35);
    animation: authLogoFloat 5s ease-in-out infinite;
}

.splash-brand-name {
    font-size: clamp(1.45rem, 3.5vw, 2rem);
    font-weight: 900;
    letter-spacing: .2em;
    text-transform: uppercase;
    margin: 0 0 12px;
    background: linear-gradient(90deg, #fff, rgba(255,255,255,.88));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.splash-tagline {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .82);
    line-height: 1.55;
    margin: 0;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.splash-dev-credit {
    margin-top: 48px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.splash-dev-credit .tv-developer-credit {
    background: rgba(255, 255, 255, .1);
    padding: 9px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .2);
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, .9);
    transition: transform .3s ease, background .3s ease;
}

.splash-dev-credit .tv-developer-credit:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .14);
}

/* ── Painel direito (acesso) ── */
.splash-right {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 28px;
    position: relative;
    overflow: hidden;
}

.splash-right-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 88% 12%, rgba(67, 160, 71, .1), transparent 42%),
        radial-gradient(circle at 8% 92%, rgba(229, 57, 53, .08), transparent 38%),
        linear-gradient(180deg, #f3f5f8 0%, #e8ecef 100%);
}

.portal-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 24px;
    padding: 40px 36px 32px;
    text-align: center;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, .02),
        0 24px 56px rgba(0, 0, 0, .1),
        0 0 0 1px rgba(0, 0, 0, .04);
    overflow: hidden;
}

.portal-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #E53935, #FBC02D, #43A047);
}

.portal-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--brand-gradient-soft);
    border: 1px solid rgba(67, 160, 71, .15);
    color: var(--brand-green);
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.portal-card h2 {
    font-weight: 800;
    font-size: 1.55rem;
    letter-spacing: -.02em;
    color: var(--brand-text);
    margin: 0 0 6px;
}

.portal-sub {
    font-size: .9rem;
    color: var(--brand-text-muted);
    margin: 0 0 28px;
}

.btn-portal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 20px;
    font-weight: 800;
    letter-spacing: .03em;
    border-radius: 14px;
    text-decoration: none;
    margin-bottom: 12px;
    transition: transform .3s cubic-bezier(.34, 1.4, .64, 1),
                box-shadow .3s ease,
                background .25s ease,
                border-color .25s ease;
    font-size: .92rem;
    position: relative;
    overflow: hidden;
}

.btn-portal i {
    font-size: 1.15rem;
}

.btn-portal-primary {
    background: var(--brand-gradient);
    color: #fff;
    border: none;
    box-shadow: 0 10px 28px rgba(67, 160, 71, .32);
}

.btn-portal-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
    animation: authBtnShine 4s ease-in-out 2s infinite;
}

.btn-portal-primary:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(67, 160, 71, .42);
    filter: brightness(1.03);
}

.btn-portal-outline {
    background: #fff;
    color: var(--brand-text);
    border: 2px solid #e5e8ec;
}

.btn-portal-outline:hover {
    color: var(--brand-green-dark);
    border-color: var(--brand-green);
    background: rgba(67, 160, 71, .04);
    transform: translateY(-2px);
}

.splash-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eef0f3;
    font-size: .75rem;
    color: var(--brand-text-muted);
}

.splash-footer a {
    color: var(--brand-green);
    text-decoration: none;
    font-weight: 600;
}

.splash-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .splash-left {
        min-height: 42vh;
        padding: 36px 24px 28px;
    }
    .splash-dev-credit {
        margin-top: 28px;
    }
    .splash-right {
        padding: 28px 20px 40px;
    }
    .portal-card {
        padding: 32px 24px 28px;
        border-radius: 20px;
    }
}

/* ══════════════════════════════════════
   LOGIN — Intro premium
   ══════════════════════════════════════ */
body.login-intro-active { overflow: hidden; }

.login-intro {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f1410;
    overflow: hidden;
}

.login-intro-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.login-intro-mesh {
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(ellipse 55% 45% at 20% 30%, rgba(229, 57, 53, .55), transparent 55%),
        radial-gradient(ellipse 50% 40% at 78% 68%, rgba(67, 160, 71, .5), transparent 50%),
        radial-gradient(ellipse 40% 35% at 55% 15%, rgba(251, 192, 45, .35), transparent 45%),
        linear-gradient(145deg, #1a0a0a 0%, #0d1a0f 45%, #1a1510 100%);
    animation: authIntroMesh 8s ease-in-out infinite;
}

.login-intro-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}
.login-intro-orb--1 {
    width: 320px; height: 320px;
    top: -8%; left: -6%;
    background: rgba(229, 57, 53, .45);
    animation: authIntroOrb 7s ease-in-out infinite;
}
.login-intro-orb--2 {
    width: 260px; height: 260px;
    bottom: -5%; right: -4%;
    background: rgba(67, 160, 71, .4);
    animation: authIntroOrb 9s ease-in-out -2s infinite;
}
.login-intro-orb--3 {
    width: 180px; height: 180px;
    top: 42%; left: 58%;
    background: rgba(251, 192, 45, .28);
    animation: authIntroOrb 6s ease-in-out -4s infinite;
}

.login-intro-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}
.login-intro-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .75);
    box-shadow: 0 0 8px rgba(255, 255, 255, .5);
    left: calc(12% + (var(--i) * 8%));
    bottom: calc(18% + (var(--i) * 3%));
    animation: authIntroParticle 2.4s ease-out calc(var(--i) * .18s + .5s) infinite;
}

.login-intro-stage {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
    animation: authIntroStageIn .8s cubic-bezier(.22, 1, .36, 1) forwards;
}

.login-intro-halo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    margin: -100px 0 0 -100px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .35);
    animation: authIntroHalo 2.4s ease-out forwards;
    pointer-events: none;
}
.login-intro-halo--2 {
    animation-delay: .35s;
    border-color: rgba(255, 255, 255, .18);
}

.login-intro-logo-shell {
    position: relative;
    margin-bottom: 20px;
}

.login-intro-logo {
    width: clamp(140px, 36vw, 200px);
    height: auto;
    border-radius: 50%;
    display: block;
    box-shadow:
        0 0 0 5px rgba(255, 255, 255, .12),
        0 0 60px rgba(67, 160, 71, .35),
        0 24px 50px rgba(0, 0, 0, .45);
    animation: authIntroLogoHero 1.1s cubic-bezier(.34, 1.45, .64, 1) .2s both;
}

.login-intro-shine {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    overflow: hidden;
    pointer-events: none;
}
.login-intro-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
    animation: authIntroShinePass 1.4s ease-in-out 1s forwards;
}

.login-intro-brand {
    font-size: clamp(1.35rem, 5vw, 1.85rem);
    font-weight: 900;
    letter-spacing: .22em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #fff 0%, #f5f5f5 40%, rgba(255,255,255,.85) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0;
    animation: authIntroBrandIn .85s cubic-bezier(.22, 1, .36, 1) .75s forwards;
    text-shadow: 0 0 40px rgba(255,255,255,.15);
}

.login-intro-tagline {
    margin: 14px 0 0;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .78);
    max-width: 320px;
    line-height: 1.5;
    opacity: 0;
    animation: authFadeUp .7s ease 1.05s forwards;
}

.login-intro-bar {
    width: min(200px, 60vw);
    height: 3px;
    margin-top: 28px;
    background: rgba(255, 255, 255, .12);
    border-radius: 999px;
    overflow: hidden;
    opacity: 0;
    animation: authFadeIn .4s ease 1.2s forwards;
}
.login-intro-bar-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #E53935, #FBC02D, #43A047);
    animation: authIntroBarFill 1.2s cubic-bezier(.4, 0, .2, 1) 1.25s forwards;
}

.login-intro.login-intro-exit {
    animation: authIntroExitZoom .75s cubic-bezier(.55, 0, 1, .45) forwards;
}
.login-intro.login-intro-exit .login-intro-stage {
    animation: authIntroExitZoom .75s cubic-bezier(.55, 0, 1, .45) forwards;
}

/* Login page reveal */
.login-page {
    min-height: 100vh;
    display: flex;
    opacity: 0;
    transform: translateY(12px);
}

body.login-ready .login-page {
    animation: authFadeUp .75s cubic-bezier(.22, 1, .36, 1) forwards;
}

/* ── Painel esquerdo (marca) ── */
.login-brand {
    flex: 1.05;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: #101412;
}

.login-brand-mesh {
    position: absolute;
    inset: -15%;
    background:
        radial-gradient(ellipse 60% 50% at 15% 25%, rgba(229, 57, 53, .55), transparent 55%),
        radial-gradient(ellipse 55% 45% at 85% 75%, rgba(67, 160, 71, .5), transparent 50%),
        radial-gradient(ellipse 45% 40% at 60% 20%, rgba(251, 192, 45, .35), transparent 45%),
        linear-gradient(155deg, #1a0c0c 0%, #0f1a12 50%, #141210 100%);
    animation: authIntroMesh 10s ease-in-out infinite;
}

.login-brand-grid {
    position: absolute;
    inset: 0;
    opacity: .07;
    background-image:
        linear-gradient(rgba(255,255,255,.8) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.8) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 20%, transparent 75%);
}

.login-brand-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
}
.login-brand-orb--a {
    width: 280px; height: 280px;
    top: 5%; left: -8%;
    background: rgba(229, 57, 53, .35);
    animation: authIntroOrb 8s ease-in-out infinite;
}
.login-brand-orb--b {
    width: 220px; height: 220px;
    bottom: 8%; right: -6%;
    background: rgba(67, 160, 71, .32);
    animation: authIntroOrb 10s ease-in-out -3s infinite;
}
.login-brand-orb--c {
    width: 140px; height: 140px;
    top: 55%; left: 55%;
    background: rgba(251, 192, 45, .22);
    animation: authIntroOrb 7s ease-in-out -5s infinite;
}

.login-brand-inner {
    position: relative;
    z-index: 2;
    max-width: 360px;
}

.login-brand-logo-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
}
.login-brand-logo-wrap::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .2);
    animation: authRingPulse 3s ease-out infinite;
}

.login-brand-logo {
    width: clamp(150px, 20vw, 200px);
    height: auto;
    border-radius: 50%;
    display: block;
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, .1),
        0 0 48px rgba(67, 160, 71, .3),
        0 20px 48px rgba(0, 0, 0, .35);
    animation: authLogoFloat 5s ease-in-out infinite;
}

.login-brand-name {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin: 0 0 10px;
    background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.9) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.login-brand-tagline {
    opacity: .88;
    max-width: 300px;
    margin: 0 auto 24px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    line-height: 1.55;
    color: rgba(255, 255, 255, .85);
}

.login-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: rgba(255, 255, 255, .95);
}
.login-brand-badge i {
    font-size: 1rem;
    color: rgba(255, 255, 255, .9);
}

/* ── Painel direito (formulário) ── */
.login-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    position: relative;
    background: #eef0f3;
    overflow: hidden;
}

.login-form-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 15%, rgba(67, 160, 71, .08), transparent 40%),
        radial-gradient(circle at 10% 90%, rgba(229, 57, 53, .06), transparent 35%),
        linear-gradient(180deg, #f3f5f7 0%, #e9ecef 100%);
    pointer-events: none;
}

.login-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 24px;
    padding: 40px 38px 32px;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, .02),
        0 20px 50px rgba(0, 0, 0, .08),
        0 0 0 1px rgba(0, 0, 0, .04);
    opacity: 0;
    overflow: hidden;
}

.login-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #E53935, #FBC02D, #43A047);
}

body.login-ready .login-card {
    animation: authCardIn .8s cubic-bezier(.22, 1, .36, 1) .12s forwards;
}

.login-card-head {
    text-align: center;
    margin-bottom: 28px;
}

.login-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--brand-gradient-soft);
    border: 1px solid rgba(67, 160, 71, .15);
    color: var(--brand-green);
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.login-card-title {
    font-weight: 800;
    font-size: 1.45rem;
    letter-spacing: -.02em;
    margin: 0 0 4px;
    color: var(--brand-text);
}

.login-card-sub {
    font-size: .875rem;
    color: var(--brand-text-muted);
    margin: 0;
}

.login-card .logo-mobile {
    display: none;
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 18px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .1);
}

.login-card .form-label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--brand-text-muted);
    margin-bottom: 6px;
}

.login-input-group {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
    transition: box-shadow .25s ease;
}

.login-input-group .input-group-text {
    background: #f8f9fb;
    border: 1px solid #e5e8ec;
    border-right: none;
    padding-left: 16px;
    padding-right: 12px;
    color: #9ca3af;
    transition: border-color .25s, color .25s, background .25s;
}

.login-input-group .form-control {
    border: 1px solid #e5e8ec;
    border-left: none;
    padding: 14px 16px 14px 4px;
    background: #f8f9fb;
    font-size: .95rem;
    transition: border-color .25s, box-shadow .25s, background .25s;
}

.login-input-group:focus-within {
    box-shadow: 0 0 0 4px rgba(67, 160, 71, .12);
}

.login-input-group:focus-within .input-group-text,
.login-input-group:focus-within .form-control {
    border-color: var(--brand-green);
    background: #fff;
    color: var(--brand-green);
}

.login-input-group:focus-within .form-control {
    box-shadow: none;
}

.btn-login-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 14px 20px !important;
    font-size: .95rem;
    font-weight: 800;
    border-radius: 14px !important;
    margin-top: 4px;
    box-shadow: 0 8px 24px rgba(67, 160, 71, .28);
    transition: transform .25s cubic-bezier(.34, 1.4, .64, 1), box-shadow .25s ease, filter .25s ease;
}

.btn-login-submit i {
    font-size: 1.4rem;
    line-height: 1;
    transition: transform .25s ease;
}

.btn-login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(67, 160, 71, .38);
    filter: brightness(1.04);
}

.btn-login-submit:hover i {
    transform: translateX(3px);
}

.login-card-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #eef0f3;
}

.login-link {
    font-size: .8rem;
    font-weight: 600;
    color: var(--brand-text-muted);
    text-decoration: none;
    transition: color .2s ease;
}

.login-link:hover {
    color: var(--brand-green);
}

.login-link--site {
    color: var(--brand-green);
}

.login-link--site:hover {
    color: var(--brand-green-dark);
}

.login-field { opacity: 0; }
body.login-ready .login-field--1 { animation: authFadeUp .65s ease .3s forwards; }
body.login-ready .login-field--2 { animation: authFadeUp .65s ease .42s forwards; }
body.login-ready .login-field--3 { animation: authFadeUp .65s ease .54s forwards; }
body.login-ready .login-field--4 { animation: authFadeUp .65s ease .66s forwards; }

@media (min-width: 768px) {
    .login-brand { display: flex; }
}

@media (max-width: 767px) {
    .login-form-side {
        padding: 28px 18px;
        min-height: 100vh;
        align-items: flex-start;
        padding-top: 48px;
    }
    .login-card {
        padding: 32px 24px 28px;
        border-radius: 20px;
    }
    .login-card .logo-mobile { display: block; }
    .login-card-head { margin-bottom: 22px; }
    .login-card-links {
        flex-direction: column;
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-intro { display: none !important; }
    .login-page,
    .login-card,
    .login-field,
    .splash-logo,
    .auth-anim,
    .splash-right,
    .btn-portal-primary::after {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
