/* Login-only forced style layer. Reuses Friding jade palette from tailwind config. */
.auth-login-page {
    --frd-primary: #15AFA7;
    --frd-primary-dark: #0B7C77;
    --frd-primary-darker: #074f4c;
    --frd-accent: #0b9b8c;
    --frd-light: #f0f0f0;
    --frd-gray: #e0e0e0;
    --frd-surface: #06090f;
    --frd-ink: #0d1320;
    --frd-electric: #4de2bf;
    --frd-mint: #8af5d4;
    --frd-jade: #1fc8a8;
    font-family: 'Segoe UI', 'Segoe UI Variable', 'Trebuchet MS', sans-serif;
    background: radial-gradient(1200px 650px at 100% -10%, rgba(77, 226, 191, 0.16), transparent 58%),
        radial-gradient(900px 500px at -10% 100%, rgba(11, 156, 140, 0.2), transparent 64%),
        linear-gradient(130deg, #071512 0%, #0a1f1a 48%, #0b2a24 100%);
    color: var(--frd-light);
    overflow: hidden;
}

.auth-login-page .auth-container {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    min-height: 100vh;
    padding: 1rem;
    box-sizing: border-box;
    backdrop-filter: blur(5px);
}

.auth-login-page .auth-container::before,
.auth-login-page .auth-container::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    filter: blur(44px);
    z-index: -1;
    opacity: 0.58;
    pointer-events: none;
}

.auth-login-page .auth-container::before {
    top: -120px;
    left: -90px;
    background: radial-gradient(circle, rgba(77, 226, 191, 0.45), rgba(77, 226, 191, 0));
    animation: floatGlow 9s ease-in-out infinite;
}

.auth-login-page .auth-container::after {
    right: -110px;
    bottom: -140px;
    background: radial-gradient(circle, rgba(21, 175, 167, 0.36), rgba(21, 175, 167, 0));
    animation: floatGlow 11s ease-in-out infinite reverse;
}

.auth-login-page .blur {
    background: linear-gradient(135deg, rgba(4, 16, 14, 0.7) 0%, rgba(4, 16, 14, 0.4) 50%, rgba(4, 16, 14, 0.68) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.auth-login-page .login-container {
    position: relative;
    border: 1px solid rgba(138, 245, 212, 0.26);
    background: linear-gradient(155deg, rgba(8, 28, 24, 0.9), rgba(9, 37, 31, 0.78));
    border-radius: 20px;
    width: min(430px, 94vw);
    height: auto;
    padding: 1.5rem 1.25rem 1.45rem;
    gap: 0.85rem;
    margin: 0 auto;
    transform: none;
    z-index: 2;
    box-shadow: 0 16px 40px rgba(2, 11, 10, 0.52), 0 0 0 1px rgba(138, 245, 212, 0.06) inset;
    animation: cardReveal 0.8s ease;
}

.auth-login-page .login-container::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(138, 245, 212, 0.08), transparent 38%, rgba(77, 226, 191, 0.12));
    pointer-events: none;
}

.auth-login-page .auth-img {
    width: clamp(145px, 20vw, 170px);
    margin: 0.1rem auto 0.45rem;
    filter: drop-shadow(0 8px 18px rgba(7, 24, 20, 0.6));
}

.auth-login-page .auth-back-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0.1rem 0 0.3rem;
    padding: 0.46rem 0.78rem;
    border-radius: 9999px;
    border: 1px solid rgba(138, 245, 212, 0.34);
    background: linear-gradient(160deg, rgba(9, 31, 26, 0.95), rgba(10, 38, 32, 0.78));
    color: #d9fff2;
    font-weight: 700;
    font-size: 0.86rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(2, 10, 9, 0.4);
    transition: transform 0.2s ease, box-shadow 0.3s ease, border-color 0.3s ease, color 0.25s ease;
}

.auth-login-page .auth-back-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(138, 245, 212, 0.5);
    color: #f2fffb;
    box-shadow: 0 13px 24px rgba(2, 10, 9, 0.52);
    text-decoration: none;
}

.auth-login-page .auth-back-btn:active {
    transform: translateY(0) scale(0.98);
}

.auth-login-page .auth-back-icon {
    width: 1.2rem;
    height: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: rgba(77, 226, 191, 0.2);
    color: var(--frd-mint);
    line-height: 1;
    font-size: 0.92rem;
}

.auth-login-page .login-container form {
    width: 100%;
    max-width: 340px;
    gap: 0.92rem;
    align-items: stretch;
}

.auth-login-page .login-container form > input,
.auth-login-page .auth-pass input {
    border: 1px solid rgba(138, 245, 212, 0.16);
    background: linear-gradient(180deg, rgba(7, 26, 21, 0.92) 0%, rgba(5, 19, 16, 0.84) 100%);
    color: #e8fff7;
    box-sizing: border-box;
    border-radius: 14px;
    height: 48px;
    padding: 0 0.95rem;
    letter-spacing: 0.01em;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease, background-color 0.3s ease;
}

.auth-login-page .login-container form > input,
.auth-login-page .auth-pass {
    width: 100%;
    max-width: 340px;
}

.auth-login-page .login-container form > input::placeholder,
.auth-login-page .auth-pass input::placeholder {
    color: rgba(224, 245, 238, 0.58);
}

.auth-login-page .login-container form > input:focus,
.auth-login-page .auth-pass input:focus {
    outline: none;
    border-color: rgba(77, 226, 191, 0.62);
    box-shadow: 0 0 0 4px rgba(77, 226, 191, 0.13), 0 10px 24px rgba(6, 24, 20, 0.45);
    transform: translateY(-1px);
}

.auth-login-page .auth-pass {
    position: relative;
    height: auto;
}

.auth-login-page .auth-pass input {
    width: 100%;
    border-radius: 14px;
    padding-right: 2.7rem;
}

.auth-login-page .btn-eye {
    position: absolute;
    top: 50%;
    right: 0.6rem;
    transform: translateY(-50%);
    height: 30px;
    width: 30px;
    border-radius: 999px;
    border: 0;
    background: transparent;
    color: var(--frd-mint);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.25s ease;
}

.auth-login-page .btn-eye:hover {
    transform: translateY(-50%) scale(1.05);
    background: rgba(12, 45, 38, 0.42);
    color: var(--frd-electric);
}

.auth-login-page .btn-eye:active {
    transform: translateY(-50%) scale(0.92);
}

.auth-login-page .btn-eye svg {
    width: 18px;
    height: 18px;
}

.auth-login-page .auth-button {
    width: 100%;
    max-width: 340px;
    border-radius: 14px;
    height: 48px;
    border: 1px solid rgba(138, 245, 212, 0.35);
    color: #03221d;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, var(--frd-electric) 0%, var(--frd-jade) 100%);
    box-shadow: 0 14px 30px rgba(13, 90, 77, 0.42);
    transition: transform 0.2s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.auth-login-page .auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 34px rgba(9, 66, 57, 0.48);
    filter: brightness(1.03);
}

.auth-login-page .auth-button:active {
    transform: translateY(0) scale(0.98);
}

.auth-login-page .login-container p {
    color: rgba(234, 255, 247, 0.86);
    margin: 0.2rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.auth-login-page .login-container a {
    color: var(--frd-mint);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.auth-login-page .login-container a:hover {
    color: #d9fff2;
    text-decoration: underline;
    text-shadow: 0 0 14px rgba(77, 226, 191, 0.34);
}

.auth-login-page .tc-red {
    background: rgba(94, 15, 19, 0.36);
    border: 1px solid rgba(255, 128, 132, 0.38);
    border-radius: 10px;
    color: #ffd3d6;
    margin: 0 0 0.15rem;
    padding: 0.45rem 0.75rem;
}

.auth-login-page .login-visual {
    display: block;
    position: absolute;
    inset: 8%;
    z-index: 0;
    border-radius: 26px;
    border: 1px solid rgba(138, 245, 212, 0.14);
    overflow: hidden;
    opacity: 0.28;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(138, 245, 212, 0.05);
}

.auth-login-page .img-2 {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 58% center;
    filter: saturate(1.12) contrast(1.04) brightness(0.84);
    animation: imageReveal 0.95s ease, imageBreath 12s ease-in-out infinite;
}

.auth-login-page .login-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, rgba(3, 15, 12, 0.68), rgba(3, 15, 12, 0.18) 40%, rgba(3, 15, 12, 0.7));
    z-index: 1;
}

.auth-login-page .auth-container::selection {
    background: rgba(77, 226, 191, 0.26);
}

.auth-login-page .img-2:hover {
    filter: saturate(1.18) contrast(1.06) brightness(0.9);
}

.auth-login-page .img-2 {
    transform-origin: center;
}

.auth-login-page .img-2,
.auth-login-page .login-container {
    will-change: transform;
}



@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes imageReveal {
    from {
        opacity: 0;
        transform: translateX(12px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes imageBreath {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.028);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes pulseOrb {
    0% {
        opacity: 0.42;
        transform: scale(1);
    }

    50% {
        opacity: 0.76;
        transform: scale(1.12);
    }

    100% {
        opacity: 0.42;
        transform: scale(1);
    }
}

@keyframes floatGlow {
    0% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(8px, 10px, 0);
    }

    100% {
        transform: translate3d(0, 0, 0);
    }
}

@media (max-width: 1080px) {
    .auth-login-page .auth-container {
        align-content: center;
        padding: 1rem;
        min-height: 100vh;
    }

    .auth-login-page .login-container {
        width: min(430px, 92vw);
        transform: none;
    }

    .auth-login-page .login-visual {
        inset: 10% 4%;
        opacity: 0.24;
    }
}

@media (max-width: 640px) {
    .auth-login-page {
        overflow-y: auto;
    }

    .auth-login-page .auth-container {
        min-height: 100vh;
        height: auto;
        padding: 0.8rem 0.7rem 1rem;
    }

    .auth-login-page .login-container {
        width: min(430px, 100%);
        padding: 1.1rem 0.9rem 1.15rem;
        border-radius: 16px;
        transform: none;
    }

    .auth-login-page .auth-back-btn {
        width: min(240px, 100%);
        max-width: 240px;
        justify-content: center;
        min-height: 44px;
        margin: 0 auto 0.55rem;
        font-size: 0.9rem;
        border-color: rgba(138, 245, 212, 0.52);
        box-shadow: 0 14px 28px rgba(8, 44, 38, 0.5), 0 0 0 1px rgba(138, 245, 212, 0.18) inset;
        background: linear-gradient(145deg, rgba(9, 37, 31, 0.95), rgba(15, 54, 45, 0.92));
    }

    .auth-login-page .auth-back-icon {
        width: 1.32rem;
        height: 1.32rem;
        font-size: 0.95rem;
        background: rgba(77, 226, 191, 0.24);
    }

    .auth-login-page .login-visual {
        inset: 7% 3%;
        border-radius: 18px;
        opacity: 0.22;
    }

    .auth-login-page .login-container form,
    .auth-login-page .login-container form > input,
    .auth-login-page .auth-pass,
    .auth-login-page .auth-button {
        width: 100%;
        max-width: 100%;
    }

    .auth-login-page .login-container form > input,
    .auth-login-page .auth-pass input,
    .auth-login-page .btn-eye,
    .auth-login-page .auth-button {
        height: 46px;
    }

    .auth-login-page .login-container form > input,
    .auth-login-page .auth-pass input {
        min-height: 46px;
        font-size: 0.96rem;
    }

    .auth-login-page .btn-eye {
        width: 28px;
        height: 28px;
        right: 0.5rem;
    }

    .auth-login-page .auth-pass input {
        padding-right: 2.5rem;
    }

    .auth-login-page .btn-eye svg {
        width: 17px;
        height: 17px;
    }

    .auth-login-page .login-container p {
        font-size: 0.84rem;
    }
}
