/**
 * DINO FINDER 로그인 v2 — body.login-v2
 */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body.login-v2 {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--text-dark);
    background: #0c0a14;
    text-rendering: optimizeLegibility;
}

.login-v2-root {
    display: grid;
    grid-template-columns: minmax(320px, 0.92fr) minmax(380px, 1.08fr);
    min-height: 100vh;
    min-height: 100dvh;
}

@media (max-width: 960px) {
    .login-v2-root {
        grid-template-columns: 1fr;
    }
}

/* ----- 좌측 브랜드 패널 ----- */
.login-v2-aside {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: clamp(40px, 5vh, 64px) clamp(36px, 4.5vw, 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-aside-gradient);
}

.login-v2-aside__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 90% 70% at 0% 0%, rgba(212, 240, 138, 0.14), transparent 52%),
        radial-gradient(ellipse 75% 55% at 100% 100%, rgba(155, 127, 199, 0.28), transparent 48%),
        radial-gradient(circle at 42% 38%, rgba(255, 255, 255, 0.07), transparent 42%);
}

.login-v2-aside__inner {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    margin: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.login-v2-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    margin-bottom: 28px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-pill);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.login-v2-eyebrow__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-neon);
    box-shadow: 0 0 10px rgba(212, 240, 138, 0.65);
}

.login-v2-aside .login-v2-logo-stack.brand-logo-stack {
    width: min(100%, 380px);
    max-height: clamp(118px, 14vw, 168px);
    margin: 0 0 32px;
}

.login-v2-aside .login-v2-logo-stack .brand-logo {
    max-height: clamp(118px, 14vw, 168px);
}

.login-v2-headline {
    font-size: clamp(1.625rem, 2.2vw, 2.125rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.28;
    margin: 0 0 14px;
    color: #fff;
}

.login-v2-lead {
    font-size: clamp(0.9375rem, 1.35vw, 1.0625rem);
    font-weight: 500;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
    max-width: 36ch;
    margin: 0 0 36px;
}

.login-v2-features {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.login-v2-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 13px 16px;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.94);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.login-v2-features li:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateX(2px);
}

.login-v2-features__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-neon);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.login-v2-features__icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

@media (max-width: 960px) {
    .login-v2-aside {
        min-height: auto;
        padding: 36px 24px 32px;
        justify-content: center;
    }

    .login-v2-aside__inner {
        align-items: center;
        text-align: center;
    }

    .login-v2-aside .login-v2-logo-stack.brand-logo-stack {
        width: min(100%, 300px);
        max-height: 120px;
        margin: 0 auto 24px;
    }

    .login-v2-aside .login-v2-logo-stack .brand-logo {
        max-height: 120px;
        object-position: center;
    }

    .login-v2-lead {
        text-align: center;
        max-width: none;
    }

    .login-v2-features {
        max-width: 360px;
    }

    .login-v2-features li:hover {
        transform: none;
    }
}

/* ----- 우측 폼 영역 ----- */
.login-v2-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px);
    background:
        radial-gradient(ellipse 100% 80% at 100% 0%, rgba(155, 127, 199, 0.1), transparent 55%),
        radial-gradient(ellipse 80% 60% at 0% 100%, rgba(91, 78, 157, 0.06), transparent 50%),
        #f4f6f9;
}

.login-v2-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 22px;
    padding: clamp(32px, 4vw, 40px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.8) inset,
        0 24px 48px -20px rgba(15, 23, 42, 0.14),
        0 8px 20px -12px rgba(91, 78, 157, 0.12);
}

.login-v2-card__head {
    margin-bottom: 28px;
}

.login-v2-card__kicker {
    display: block;
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-purple-muted);
}

.login-v2-card__title {
    margin: 0 0 10px;
    font-size: clamp(1.5rem, 2vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.25;
    color: #0f172a;
}

.login-v2-card__desc {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.6;
    color: #64748b;
}

.login-v2-card__foot {
    margin: 24px 0 0;
    padding-top: 18px;
    border-top: 1px solid #eef2f6;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.55;
    color: #94a3b8;
    text-align: center;
}

.login-v2-segments {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: #eef2f6;
    border-radius: 14px;
    margin-bottom: 22px;
    border: 1px solid #e2e8f0;
}

.login-v2-seg {
    flex: 1;
    border: none;
    padding: 12px 16px;
    border-radius: 11px;
    font-size: 0.9375rem;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: -0.01em;
    cursor: pointer;
    background: transparent;
    color: #64748b;
    transition:
        background 0.22s ease,
        color 0.22s ease,
        box-shadow 0.22s ease;
}

.login-v2-seg:hover:not(.is-active) {
    color: #334155;
    background: rgba(255, 255, 255, 0.55);
}

.login-v2-seg.is-active {
    background: #fff;
    color: var(--primary-purple-deep);
    box-shadow:
        0 1px 3px rgba(15, 23, 42, 0.06),
        0 4px 12px rgba(15, 23, 42, 0.05);
}

.login-v2-card .form-group {
    margin-bottom: 18px;
}

.login-v2-card .form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #475569;
    margin-bottom: 8px;
}

.login-v2-card .form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d1d9e6;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: #0f172a;
    background: #fafbfc;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.login-v2-card .form-group input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.login-v2-card .form-group input:hover {
    border-color: #b8c4d4;
    background: #fff;
}

.login-v2-card .form-group input:focus {
    outline: none;
    border-color: var(--focus-border);
    background: var(--bg-card);
    box-shadow: var(--focus-ring);
}

.login-v2-card .form-group input.input-uppercase {
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.login-v2-card .btn-primary {
    width: 100%;
    margin-top: 8px;
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 800;
    font-family: inherit;
    letter-spacing: -0.02em;
    cursor: pointer;
    color: #fff;
    background: var(--brand-cta-gradient);
    box-shadow:
        var(--brand-cta-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition:
        filter 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

.login-v2-card .btn-primary:hover:not(:disabled) {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow:
        var(--brand-cta-shadow-hover),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.login-v2-card .btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.login-v2-card .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-v2-card .btn-secondary {
    width: 100%;
    margin-top: 10px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    background: #fff;
    color: #475569;
}

.login-v2-card .btn-secondary:hover:not(:disabled) {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.login-v2-card .forgot-password-link {
    text-align: right;
    margin: 10px 0 0;
}

.login-v2-card .forgot-password-link a {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary-purple-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.login-v2-card .forgot-password-link a:hover {
    color: var(--primary-purple-deep);
    text-decoration: underline;
}

.login-v2-card .divider {
    margin: 22px 0;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

#alert-container {
    min-height: 0;
}

#alert-container:not(:empty) {
    margin-bottom: 18px;
}

.login-v2-card .alert {
    padding: 13px 14px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.55;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid transparent;
}

.login-v2-card .alert__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    margin-top: 1px;
}

.login-v2-card .alert__text {
    flex: 1;
    min-width: 0;
}

.login-v2-card .alert-success {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #047857;
}

.login-v2-card .alert-success .alert__icon {
    background: #d1fae5;
    color: #059669;
}

.login-v2-card .alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.login-v2-card .alert-error .alert__icon {
    background: #fee2e2;
    color: #dc2626;
}

.login-v2-card .alert-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.login-v2-card .alert-warning .alert__icon {
    background: #fef3c7;
    color: #d97706;
}

.login-v2-card .loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary-purple-deep);
    margin-top: 14px;
}

.login-v2-card .loading::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--primary-purple-pale);
    border-top-color: var(--primary-purple);
    border-radius: 50%;
    animation: login-v2-spin 0.65s linear infinite;
}

@keyframes login-v2-spin {
    to {
        transform: rotate(360deg);
    }
}

.login-v2-card .hidden,
.login-v2-panel.hidden {
    display: none !important;
}

.login-v2-card .coupon-hint {
    font-size: 0.8125rem;
    color: #64748b;
    margin-top: 8px;
    line-height: 1.55;
}

.login-v2-card .coupon-hint strong {
    color: var(--primary-purple-deep);
    font-weight: 700;
}

.login-v2-card .label-optional {
    color: #94a3b8;
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    .login-v2-card .loading::after {
        animation-duration: 1.5s;
    }

    .login-v2-card .btn-primary:hover:not(:disabled),
    .login-v2-features li:hover {
        transform: none;
    }
}
