/* Conference Portal — soothing teal & green jungle sign-in (Apple-like glass) */
:root {
    --tg-mint: #d1fae5;
    --tg-1: #6ee7b7;
    --tg-2: #34d399;
    --tg-3: #14b8a6;
    --tg-4: #0d9488;
    --tg-deep: #0b3b3a;
    --ink: #eafff7;
    --glass-bg: rgba(12, 44, 42, 0.12);
    --glass-brd: rgba(190, 255, 235, 0.28);
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body.conf-login {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 18px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    position: relative;
    overflow: hidden;
    background: #06201f;
}

/* ── Moving jungle background ──────────────────────── */
.login-bg {
    position: fixed;
    inset: -6% -6% -6% -6%;
    z-index: 0;
    background: url("../images/login-jungle.png") center/cover no-repeat;
    animation: bgDrift 40s ease-in-out infinite alternate;
    transform-origin: 55% 42%;
    will-change: transform;
}
.login-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 95% at 50% 34%, rgba(4, 30, 28, 0) 40%, rgba(4, 26, 24, 0.72) 100%),
        linear-gradient(180deg, rgba(6, 40, 38, 0.32), rgba(4, 24, 22, 0.5));
}

@keyframes bgDrift {
    0%   { transform: scale(1.06) translate3d(0, 0, 0); }
    50%  { transform: scale(1.13) translate3d(-1.4%, -1.2%, 0); }
    100% { transform: scale(1.09) translate3d(1.3%, 1.1%, 0); }
}

/* Swaying light rays through the trees */
.login-rays {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(103deg,
        rgba(255,255,255,0) 32%,
        rgba(210,255,235,0.12) 44%,
        rgba(180,255,220,0.05) 52%,
        rgba(255,255,255,0) 64%);
    mix-blend-mode: screen;
    animation: raySway 14s ease-in-out infinite alternate;
    transform-origin: top center;
}
@keyframes raySway {
    0%   { opacity: 0.55; transform: translateX(-3%) rotate(-1deg); }
    100% { opacity: 0.9;  transform: translateX(3%) rotate(1.2deg); }
}

/* Floating pollen / light motes drifting in the air */
.login-motes {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.login-motes span {
    position: absolute;
    bottom: -8%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, rgba(230,255,245,0.95), rgba(110,231,183,0.15) 70%);
    box-shadow: 0 0 10px rgba(180, 255, 220, 0.55);
    opacity: 0;
    animation: moteRise linear infinite;
}
.login-motes span:nth-child(1)  { left: 6%;  width: 6px;  height: 6px;  animation-duration: 20s; animation-delay: 0s; }
.login-motes span:nth-child(2)  { left: 15%; width: 10px; height: 10px; animation-duration: 26s; animation-delay: 3s; }
.login-motes span:nth-child(3)  { left: 24%; width: 5px;  height: 5px;  animation-duration: 18s; animation-delay: 6s; }
.login-motes span:nth-child(4)  { left: 33%; width: 9px;  height: 9px;  animation-duration: 30s; animation-delay: 1s; }
.login-motes span:nth-child(5)  { left: 44%; width: 7px;  height: 7px;  animation-duration: 23s; animation-delay: 8s; }
.login-motes span:nth-child(6)  { left: 54%; width: 4px;  height: 4px;  animation-duration: 16s; animation-delay: 2s; }
.login-motes span:nth-child(7)  { left: 63%; width: 11px; height: 11px; animation-duration: 33s; animation-delay: 5s; }
.login-motes span:nth-child(8)  { left: 72%; width: 6px;  height: 6px;  animation-duration: 21s; animation-delay: 9s; }
.login-motes span:nth-child(9)  { left: 81%; width: 8px;  height: 8px;  animation-duration: 27s; animation-delay: 4s; }
.login-motes span:nth-child(10) { left: 90%; width: 5px;  height: 5px;  animation-duration: 19s; animation-delay: 7s; }
.login-motes span:nth-child(11) { left: 38%; width: 6px;  height: 6px;  animation-duration: 29s; animation-delay: 11s; }
.login-motes span:nth-child(12) { left: 68%; width: 7px;  height: 7px;  animation-duration: 24s; animation-delay: 13s; }

@keyframes moteRise {
    0%   { transform: translateY(0) translateX(0) scale(0.7); opacity: 0; }
    12%  { opacity: 0.9; }
    50%  { transform: translateY(-52vh) translateX(28px) scale(1); }
    88%  { opacity: 0.85; }
    100% { transform: translateY(-108vh) translateX(-22px) scale(0.75); opacity: 0; }
}

/* ── Glass card ────────────────────────────────────── */
.login-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 360px;
    padding: 28px 26px 22px;
    border-radius: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-brd);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    box-shadow:
        0 24px 50px -18px rgba(3, 26, 24, 0.45),
        0 2px 0 rgba(220, 255, 245, 0.18) inset,
        0 -20px 40px -36px rgba(20, 184, 166, 0.22) inset;
    text-align: center;
    animation: cardIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.login-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(150deg, rgba(220,255,245,0.45), rgba(220,255,245,0) 45%, rgba(20,184,166,0.28));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(22px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Logo badge */
.login-logo {
    width: 68px;
    height: 68px;
    margin: 0 auto 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 12px 26px -8px rgba(6, 50, 46, 0.6),
        0 0 0 1px rgba(220, 255, 245, 0.6) inset;
    overflow: hidden;
}
.login-logo img { width: 52px; height: 52px; object-fit: contain; }

.login-kicker {
    margin: 0 0 4px;
    font-size: 12px;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(209, 250, 229, 0.92);
    text-shadow: 0 1px 10px rgba(3, 30, 28, 0.5);
}
.login-title {
    margin: 0 0 16px;
    font-size: 26px;
    line-height: 1.16;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 2px 18px rgba(3, 30, 28, 0.55);
}
.login-title span {
    display: block;
    font-size: 15px;
    font-weight: 500;
    margin-top: 6px;
    color: rgba(226, 255, 246, 0.86);
    letter-spacing: 0.01em;
    text-shadow: 0 1px 10px rgba(3, 30, 28, 0.45);
}

/* Passkey block */
.login-field {
    text-align: left;
    margin-bottom: 12px;
}
.login-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin: 0 0 6px 2px;
    color: rgba(230, 255, 247, 0.9);
}
.login-input {
    width: 100%;
    padding: 13px 15px;
    border-radius: 14px;
    border: 1px solid rgba(200, 255, 235, 0.28);
    background: rgba(4, 32, 30, 0.28);
    color: #f2fffb;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.login-input::placeholder { color: rgba(210, 245, 235, 0.5); }
.login-input:focus {
    border-color: rgba(110, 231, 183, 0.85);
    background: rgba(4, 32, 30, 0.42);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.25);
}

/* Buttons */
.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    width: 100%;
    padding: 15px 20px;
    border-radius: 16px;
    font-size: 15.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: transform 0.22s cubic-bezier(0.16,1,0.3,1), box-shadow 0.22s ease, filter 0.22s ease;
}
.login-btn svg { width: 21px; height: 21px; flex: none; }
.login-btn:active { transform: translateY(0) scale(0.99); }

.login-btn--passkey {
    color: #04302c;
    background: linear-gradient(180deg, #a7f3d0, #34d399);
    box-shadow:
        0 12px 26px -10px rgba(6, 70, 60, 0.7),
        0 1px 0 rgba(255,255,255,0.4) inset;
}
.login-btn--passkey:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px -10px rgba(6, 70, 60, 0.8), 0 1px 0 rgba(255,255,255,0.5) inset;
    filter: brightness(1.03);
}
.login-btn--passkey:disabled { opacity: 0.6; cursor: default; transform: none; }

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0;
    color: rgba(226, 255, 246, 0.6);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200,255,235,0.35), transparent);
}

.login-btn--google {
    color: #123b34;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(233,255,247,0.9));
    box-shadow:
        0 12px 26px -10px rgba(6, 60, 52, 0.55),
        0 1px 0 rgba(255,255,255,0.8) inset;
}
.login-btn--google:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px -10px rgba(6, 60, 52, 0.7), 0 1px 0 rgba(255,255,255,0.9) inset;
    filter: brightness(1.02);
}

/* Alerts + status */
.login-alert {
    margin: 0 0 18px;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.45;
    text-align: left;
    backdrop-filter: blur(8px);
}
.login-alert--err {
    background: rgba(120, 30, 40, 0.42);
    border: 1px solid rgba(255, 190, 195, 0.5);
    color: #fff2f2;
}
.login-alert--ok {
    background: rgba(16, 120, 90, 0.45);
    border: 1px solid rgba(180, 255, 215, 0.5);
    color: #eafff5;
}
.login-alert--info {
    background: rgba(20, 110, 120, 0.45);
    border: 1px solid rgba(190, 245, 255, 0.5);
    color: #ecfeff;
}
.login-status {
    min-height: 18px;
    margin: 12px 0 0;
    font-size: 13px;
    color: rgba(226, 255, 246, 0.82);
}
.login-status--err { color: #ffd7d7; }

/* Powered by */
.login-powered {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 0.06em;
    color: rgba(226, 255, 246, 0.74);
    text-shadow: 0 1px 8px rgba(3, 30, 28, 0.4);
}
.login-powered img {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: rgba(255,255,255,0.92);
    padding: 2px;
    object-fit: contain;
}
.login-powered strong { color: #fff; font-weight: 600; }

@media (max-width: 460px) {
    .login-card { padding: 24px 18px 20px; border-radius: 22px; }
    .login-title { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .login-bg, .login-rays, .login-motes span, .login-card { animation: none !important; }
    .login-motes { display: none; }
}
