/* ═══════════════════════════════════════════════════════════════════
   SKIN · LIQUID
   Liquid-metal logo • Glassy buttons • Animated liquid gradient
   Eyes-follow-cursor • Frosted glass card • Rolling JTI text
   All rules scoped under body.skin-liquid #loginView — this file
   has zero effect unless the liquid skin is active.
   ═══════════════════════════════════════════════════════════════════ */

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

body.skin-liquid {
    --liq-font-display: 'Instrument Serif', 'Times New Roman', serif;
    --liq-font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    /* Monochrome black-and-silver palette */
    --liq-black:        #050507;
    --liq-ink:          #0d0e12;
    --liq-silver-hi:    #f5f5f7;   /* bright silver highlight */
    --liq-silver:       #c9cbd1;   /* base silver */
    --liq-silver-mid:   #8a8d95;   /* mid silver */
    --liq-silver-lo:    #4b4e57;   /* dark silver / graphite */
    --liq-silver-dk:    #2a2c33;   /* almost-black edge */
}

/* ─── LIQUID ANIMATED GRADIENT BACKGROUND ─────────────────────────── */
body.skin-liquid #loginView {
    position: relative;
    min-height: 100vh;
    background: var(--liq-black);
    color: #e8e9ee;
    overflow: hidden;
    font-family: var(--liq-font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Primary liquid blob layer — molten silver on black */
body.skin-liquid #loginView::before {
    content: "";
    position: absolute;
    inset: -25%;
    background:
        radial-gradient(ellipse 45% 35% at 18% 20%, rgba(201, 203, 209, 0.55) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 82% 78%, rgba(138, 141, 149, 0.55) 0%, transparent 55%),
        radial-gradient(ellipse 40% 30% at 75% 18%, rgba(245, 245, 247, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 45% 35% at 22% 82%, rgba(75, 78, 87,  0.75) 0%, transparent 55%),
        radial-gradient(ellipse 55% 45% at 50% 50%, rgba(42, 44, 51,  0.8)  0%, transparent 60%);
    filter: blur(80px) saturate(110%) contrast(1.1);
    animation: liq-bg-flow 24s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

@keyframes liq-bg-flow {
    0%   { transform: translate(0,   0)   scale(1)    rotate(0deg); }
    33%  { transform: translate(4%,  -3%) scale(1.08) rotate(3deg); }
    66%  { transform: translate(-3%, 4%)  scale(0.96) rotate(-2deg); }
    100% { transform: translate(2%,  2%)  scale(1.04) rotate(1deg); }
}

/* Secondary grain + subtle noise overlay */
body.skin-liquid #loginView::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
    opacity: 0.04;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 0;
}

body.skin-liquid #loginView > * { position: relative; z-index: 1; }

/* ─── HEADER ──────────────────────────────────────────────────────── */
body.skin-liquid #loginView .header {
    background: rgba(10, 11, 16, 0.4) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    box-shadow: none;
}

/* ─── LIQUID METAL LOGO ───────────────────────────────────────────── */
body.skin-liquid #loginView .logo {
    position: relative;
    filter: drop-shadow(0 2px 14px rgba(245, 245, 247, 0.25));
}

body.skin-liquid #loginView .logo-image {
    /* Chrome / liquid-metal look via filter stack */
    filter:
        brightness(1.15)
        contrast(1.25)
        saturate(0.7)
        drop-shadow(0 0 12px rgba(255, 255, 255, 0.15));
    transition: filter 0.4s ease;
}

/* Animated metallic sheen sweeping across the logo */
body.skin-liquid #loginView .logo::after {
    content: "";
    position: absolute;
    inset: -4px;
    background: linear-gradient(
        115deg,
        transparent 30%,
        rgba(255, 255, 255, 0.45) 46%,
        rgba(255, 255, 255, 0.8)  50%,
        rgba(255, 255, 255, 0.45) 54%,
        transparent 70%);
    mix-blend-mode: overlay;
    filter: blur(2px);
    background-size: 250% 250%;
    animation: liq-metal-sheen 4.5s ease-in-out infinite;
    pointer-events: none;
    border-radius: 8px;
}

@keyframes liq-metal-sheen {
    0%   { background-position: 150% -50%; opacity: 0; }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { background-position: -50% 150%; opacity: 0; }
}

body.skin-liquid #loginView .logo:hover .logo-image {
    filter:
        brightness(1.3)
        contrast(1.35)
        saturate(0) /* true silver on hover */
        drop-shadow(0 0 22px rgba(245, 245, 247, 0.45));
}

/* Language button — glassy pill */
body.skin-liquid #loginView .language-btn {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #f1f5f9 !important;
    border-radius: 999px !important;
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 4px 14px rgba(0, 0, 0, 0.3);
    transition: all 0.25s ease;
}
body.skin-liquid #loginView .language-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-1px);
}

body.skin-liquid #loginView .language-dropdown {
    background: rgba(20, 22, 32, 0.72) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 18px !important;
    backdrop-filter: blur(26px) saturate(160%);
    -webkit-backdrop-filter: blur(26px) saturate(160%);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
body.skin-liquid #loginView .language-option { color: #e2e8f0 !important; }
body.skin-liquid #loginView .language-option:hover:not(.disabled) {
    background: rgba(245, 245, 247, 0.12) !important;
    color: #ffffff !important;
}
body.skin-liquid #loginView .language-group-title {
    color: #94a3b8 !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.7rem;
}

/* ─── EYES-FOLLOW-CURSOR ──────────────────────────────────────────── */
.liq-eyes {
    position: absolute;
    top: -56px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 14px;
    z-index: 3;
    pointer-events: none;
    animation: liq-eyes-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s backwards;
}

@keyframes liq-eyes-pop {
    from { opacity: 0; transform: translateX(-50%) translateY(14px) scale(0.6); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0)    scale(1);   }
}

.liq-eye {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 30%,
        #ffffff 0%, #e5e7eb 55%, #d1d5db 100%);
    box-shadow:
        inset 0 -4px 8px rgba(0, 0, 0, 0.15),
        inset 0 2px 3px rgba(255, 255, 255, 0.9),
        0 6px 16px rgba(0, 0, 0, 0.4),
        0 0 0 1.5px rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.liq-pupil {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%,
        #475569 0%, #0f172a 60%, #000000 100%);
    transition: transform 0.08s linear;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.15);
    position: relative;
}
.liq-pupil::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 3px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
}

/* ─── GLASS LOGIN CARD ────────────────────────────────────────────── */
body.skin-liquid #loginView .login-container {
    position: relative;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 24px !important;
    backdrop-filter: blur(40px) saturate(160%);
    -webkit-backdrop-filter: blur(40px) saturate(160%);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -1px 0 rgba(255, 255, 255, 0.04),
        0 0 0 1px rgba(255, 255, 255, 0.03);
    overflow: visible;
    animation: liq-card-in 1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Light refraction highlight at top of card */
body.skin-liquid #loginView .login-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 100%);
    pointer-events: none;
    z-index: 2;
}

/* Subtle radial glow behind card — silver halo */
body.skin-liquid #loginView .login-container::after {
    content: "";
    position: absolute;
    inset: -20%;
    background: radial-gradient(ellipse at center,
        rgba(245, 245, 247, 0.14) 0%,
        rgba(201, 203, 209, 0.06) 40%,
        transparent 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(40px);
    animation: liq-glow-pulse 6s ease-in-out infinite;
}

@keyframes liq-glow-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.08); }
}

@keyframes liq-card-in {
    from { opacity: 0; transform: translateY(30px) scale(0.96); filter: blur(12px); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    filter: blur(0); }
}

/* ─── ROLLING TEXT HEADING ────────────────────────────────────────── */
body.skin-liquid #loginView .login-header h1 {
    color: #ffffff !important;
    font-family: var(--liq-font-display) !important;
    font-weight: 400 !important;
    font-size: 3rem !important;
    letter-spacing: -0.01em !important;
    line-height: 1.05 !important;
    margin-bottom: 0.8rem !important;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.3em;
    flex-wrap: wrap;
}

/* Static "JTI" part — chrome gradient */
.liq-rolling-base {
    background: linear-gradient(180deg,
        #ffffff 0%,
        #cbd5e1 40%,
        #94a3b8 50%,
        #cbd5e1 60%,
        #ffffff 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: normal;
    letter-spacing: 0.02em;
    text-shadow: none;
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.15));
}

/* Rolling word container */
.liq-rolling-stack {
    display: inline-block;
    height: 1em;
    line-height: 1;
    overflow: hidden;
    vertical-align: baseline;
    position: relative;
    font-style: italic;
}

.liq-rolling-inner {
    display: flex;
    flex-direction: column;
    animation: liq-roll 9s cubic-bezier(0.76, 0, 0.24, 1) infinite;
}

.liq-rolling-inner span {
    display: block;
    height: 1em;
    line-height: 1;
    /* Polished chrome gradient — same family as the static JTI but with
       stronger highlights to keep the rolling word visually active. */
    background: linear-gradient(180deg,
        #ffffff 0%,
        #e5e7eb 25%,
        #8a8d95 50%,
        #e5e7eb 75%,
        #ffffff 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-right: 0.1em;
    padding-bottom: 0.12em;
    filter: drop-shadow(0 2px 10px rgba(245, 245, 247, 0.2));
}

/* 4-stop cycle: Connect → 4U → Achievers → Connect (seamless loop) */
@keyframes liq-roll {
    0%,   20%  { transform: translateY(0); }
    25%,  45%  { transform: translateY(-1em); }
    50%,  70%  { transform: translateY(-2em); }
    75%, 100%  { transform: translateY(-3em); }
}

body.skin-liquid #loginView .login-header p {
    color: #cbd5e1 !important;
    font-family: var(--liq-font-body) !important;
    font-size: 0.95rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.01em !important;
    opacity: 0.85;
}

/* ─── FORM FIELDS (glassy) ────────────────────────────────────────── */
body.skin-liquid #loginView .form-label {
    color: #e2e8f0 !important;
    font-family: var(--liq-font-body) !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    margin-bottom: 0.5rem !important;
}

body.skin-liquid #loginView .form-input {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #f8fafc !important;
    font-family: var(--liq-font-body) !important;
    font-size: 0.95rem !important;
    border-radius: 14px !important;
    padding: 0.9rem 1rem !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
body.skin-liquid #loginView .form-input::placeholder {
    color: rgba(203, 213, 225, 0.45) !important;
}

body.skin-liquid #loginView .form-input:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(245, 245, 247, 0.55) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 0 4px rgba(245, 245, 247, 0.1),
        0 8px 24px rgba(245, 245, 247, 0.15) !important;
    transform: none !important;
}

body.skin-liquid #loginView .toggle-password { color: rgba(203, 213, 225, 0.55) !important; }
body.skin-liquid #loginView .toggle-password:hover { color: #f5f5f7 !important; }

body.skin-liquid #loginView .form-checkbox label {
    color: #cbd5e1 !important;
    font-family: var(--liq-font-body) !important;
    font-weight: 400 !important;
    font-size: 0.88rem !important;
}
body.skin-liquid #loginView .form-checkbox input[type="checkbox"] {
    accent-color: #c9cbd1;
}

/* ─── GLASSY BUTTONS ──────────────────────────────────────────────── */
body.skin-liquid #loginView .btn-primary {
    position: relative;
    /* Polished silver → graphite → silver — reads as a brushed-metal bar */
    background:
        linear-gradient(180deg,
            rgba(245, 245, 247, 0.95) 0%,
            rgba(201, 203, 209, 0.9)  35%,
            rgba(75,  78,  87,  0.95) 65%,
            rgba(42,  44,  51,  0.95) 100%) !important;
    color: #0d0e12 !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 14px !important;
    font-family: var(--liq-font-body) !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.02em !important;
    padding: 0.95rem 1.5rem !important;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -2px 4px rgba(0, 0, 0, 0.35),
        0 8px 24px rgba(0, 0, 0, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* Glass reflection at top */
body.skin-liquid #loginView .btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 40%;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0) 100%);
    border-radius: 14px 14px 50% 50% / 14px 14px 100% 100%;
    pointer-events: none;
}

/* Moving light reflection on hover */
body.skin-liquid #loginView .btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
}
body.skin-liquid #loginView .btn-primary:hover::before { left: 140%; }

body.skin-liquid #loginView .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3),
        0 14px 36px rgba(245, 245, 247, 0.25),
        0 6px 12px rgba(0, 0, 0, 0.45) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

body.skin-liquid #loginView .btn-primary:active {
    transform: translateY(0) !important;
}

body.skin-liquid #loginView .btn-secondary {
    position: relative;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #f1f5f9 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 14px !important;
    font-family: var(--liq-font-body) !important;
    font-weight: 500 !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 4px 16px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: all 0.3s ease !important;
}

body.skin-liquid #loginView .btn-secondary::after {
    content: "";
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 45%;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0) 100%);
    border-radius: 14px 14px 50% 50% / 14px 14px 100% 100%;
    pointer-events: none;
}

body.skin-liquid #loginView .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
    transform: translateY(-2px) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 8px 24px rgba(0, 0, 0, 0.3) !important;
}

/* ─── DIVIDER & DEMO CREDENTIALS ──────────────────────────────────── */
body.skin-liquid #loginView .divider::before,
body.skin-liquid #loginView .divider::after {
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent) !important;
    height: 1px !important;
}
body.skin-liquid #loginView .divider span {
    background: transparent !important;
    color: #94a3b8 !important;
    font-family: var(--liq-font-body) !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
}

body.skin-liquid #loginView .demo-credentials {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
body.skin-liquid #loginView .demo-credentials h3 {
    color: #ffffff !important;
    font-family: var(--liq-font-display) !important;
    font-weight: 400 !important;
    font-size: 1.1rem !important;
    font-style: italic;
    letter-spacing: 0.01em;
}
body.skin-liquid #loginView .demo-credentials strong {
    background: linear-gradient(180deg,
        #ffffff 0%, #c9cbd1 50%, #8a8d95 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    font-family: var(--liq-font-body);
}
body.skin-liquid #loginView .demo-credentials p {
    color: #cbd5e1 !important;
    font-family: var(--liq-font-body) !important;
    font-size: 0.85rem !important;
}

/* ─── FOOTER ──────────────────────────────────────────────────────── */
body.skin-liquid #loginView .footer {
    background: rgba(10, 11, 16, 0.4) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
}
body.skin-liquid #loginView .footer-link {
    color: #cbd5e1 !important;
    font-family: var(--liq-font-body) !important;
    font-size: 0.82rem !important;
    font-weight: 400 !important;
    transition: color 0.25s ease;
}
body.skin-liquid #loginView .footer-link:hover { color: #f5f5f7 !important; }
body.skin-liquid #loginView .footer p {
    color: #94a3b8 !important;
    font-family: var(--liq-font-body) !important;
    font-size: 0.8rem !important;
}

/* ─── ALERTS ──────────────────────────────────────────────────────── */
body.skin-liquid #loginView .alert {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 14px !important;
    color: #f1f5f9 !important;
    backdrop-filter: blur(16px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ─── SKIN PICKER overrides ───────────────────────────────────────── */
body.skin-liquid .skin-picker {
    background: rgba(20, 22, 32, 0.72) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #e2e8f0 !important;
    backdrop-filter: blur(20px) saturate(160%);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ─── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 480px) {
    body.skin-liquid #loginView .login-header h1 {
        font-size: 2.2rem !important;
        flex-direction: column;
        gap: 0.1em;
    }
    .liq-eyes { top: -44px; gap: 10px; }
    .liq-eye  { width: 34px; height: 34px; }
    .liq-pupil { width: 13px; height: 13px; }
}
