@charset "UTF-8";

:root {
    --auth-background: #f6f8fc;
    --auth-surface: #ffffff;

    --auth-text: #111827;
    --auth-text-soft: #334155;
    --auth-muted: #64748b;
    --auth-light: #94a3b8;

    --auth-line: #dfe5ef;
    --auth-line-focus: #8db2ff;

    --auth-primary: #2563eb;
    --auth-primary-dark: #1d4ed8;
    --auth-primary-soft: #eaf2ff;

    --auth-success: #15803d;
    --auth-success-soft: #ecfdf3;

    --auth-danger: #dc2626;
    --auth-danger-soft: #fff1f2;

    --auth-shadow:
        0 24px 65px rgba(15, 23, 42, 0.11);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    min-height: 100%;
    background: var(--auth-background);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--auth-text);
    font-family:
        Pretendard,
        "Noto Sans KR",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    word-break: keep-all;
}

button,
input {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

.auth-body {
    background: var(--auth-background);
}

.login-page {
    display: grid;
    grid-template-columns: minmax(430px, 0.95fr) minmax(520px, 1.05fr);
    min-height: 100vh;
}

/* 왼쪽 안내 영역 */

.login-visual {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 20% 14%,
            rgba(96, 165, 250, 0.52),
            transparent 26%
        ),
        radial-gradient(
            circle at 82% 78%,
            rgba(59, 130, 246, 0.3),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            #0f2f78 0%,
            #174eb8 52%,
            #2563eb 100%
        );
    color: #ffffff;
}

.login-visual::before {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        );
    background-size: 44px 44px;
    content: "";
    mask-image:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.85),
            transparent
        );
}

.login-visual-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 46px clamp(42px, 5vw, 86px) 36px;
}

.login-brand,
.mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
}

.login-brand-symbol {
    position: relative;
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    width: 38px;
    height: 38px;
    padding: 7px;
    overflow: hidden;
    border-radius: 12px;
    background: #ffffff;
    box-shadow:
        0 12px 26px rgba(15, 23, 42, 0.18);
}

.login-brand-symbol::after {
    position: absolute;
    right: -7px;
    bottom: -8px;
    width: 28px;
    height: 28px;
    border: 5px solid rgba(37, 99, 235, 0.18);
    border-radius: 50%;
    content: "";
}

.login-brand-symbol i {
    position: relative;
    z-index: 1;
    display: block;
    width: 4px;
    border-radius: 4px 4px 1px 1px;
    background: var(--auth-primary);
}

.login-brand-symbol i:nth-child(1) {
    height: 10px;
}

.login-brand-symbol i:nth-child(2) {
    height: 20px;
}

.login-brand-symbol i:nth-child(3) {
    height: 15px;
}

.login-brand-name {
    color: #ffffff;
    font-size: 29px;
    font-weight: 850;
    letter-spacing: -0.055em;
}

.login-visual-content {
    width: min(520px, 100%);
    margin: auto 0;
    padding: 70px 0;
}

.login-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.11);
    color: rgba(255, 255, 255, 0.87);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    backdrop-filter: blur(10px);
}

.login-visual-content h1 {
    margin: 24px 0 18px;
    font-size: clamp(38px, 4vw, 57px);
    font-weight: 850;
    line-height: 1.23;
    letter-spacing: -0.055em;
}

.login-visual-content > p {
    max-width: 490px;
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 15px;
    line-height: 1.85;
}

.login-feature-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 38px;
}

.login-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 470px;
    padding: 15px 16px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(7px);
}

.login-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.login-feature-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 780;
}

.login-feature-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.64);
    font-size: 11px;
    line-height: 1.55;
}

.login-visual-footer {
    margin: 0;
    color: rgba(255, 255, 255, 0.48);
    font-size: 11px;
}

.login-decoration {
    position: absolute;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.decoration-one {
    top: -145px;
    right: -145px;
    width: 390px;
    height: 390px;
}

.decoration-two {
    right: 8%;
    bottom: -170px;
    width: 430px;
    height: 430px;
}

.decoration-three {
    right: 26%;
    bottom: 15%;
    width: 110px;
    height: 110px;
    background: rgba(255, 255, 255, 0.04);
}

/* 오른쪽 로그인 영역 */

.login-form-area {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 48px 30px;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(37, 99, 235, 0.07),
            transparent 26%
        ),
        var(--auth-background);
}

.login-card {
    width: min(465px, 100%);
    padding: 42px 43px 36px;
    border: 1px solid rgba(223, 229, 239, 0.95);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--auth-shadow);
}

.mobile-brand {
    display: none;
    margin-bottom: 32px;
}

.mobile-brand .login-brand-name {
    color: var(--auth-primary);
}

.login-card-header {
    margin-bottom: 29px;
}

.login-card-badge {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--auth-primary-soft);
    color: var(--auth-primary);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.11em;
}

.login-card-header h2 {
    margin: 14px 0 8px;
    color: #0f172a;
    font-size: 29px;
    font-weight: 850;
    letter-spacing: -0.045em;
}

.login-card-header p {
    margin: 0;
    color: var(--auth-muted);
    font-size: 13px;
    line-height: 1.65;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 20px;
    padding: 13px 14px;
    border: 1px solid;
    border-radius: 11px;
}

.auth-alert > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 900;
}

.auth-alert p {
    margin: 2px 0 0;
    font-size: 11px;
    line-height: 1.5;
}

.auth-alert strong {
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
}

.auth-alert-success {
    border-color: #bbf7d0;
    background: var(--auth-success-soft);
    color: var(--auth-success);
}

.auth-alert-success > span {
    background: #dcfce7;
}

.auth-alert-error {
    border-color: #fecdd3;
    background: var(--auth-danger-soft);
    color: var(--auth-danger);
}

.auth-alert-error > span {
    background: #ffe4e6;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 21px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group > label,
.form-label-row label {
    color: #334155;
    font-size: 12px;
    font-weight: 750;
}

.form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.forgot-password-button {
    padding: 0;
    background: transparent;
    color: #a1aab8;
    font-size: 10px;
    font-weight: 650;
    cursor: default;
}

.input-wrapper {
    display: grid;
    grid-template-columns: 43px minmax(0, 1fr);
    align-items: center;
    height: 48px;
    overflow: hidden;
    border: 1px solid var(--auth-line);
    border-radius: 10px;
    background: #ffffff;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.password-wrapper {
    grid-template-columns: 43px minmax(0, 1fr) 44px;
}

.input-wrapper:focus-within {
    border-color: var(--auth-line-focus);
    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.08);
}

.input-wrapper.has-error {
    border-color: #fda4af;
}

.input-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #94a3b8;
}

.input-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.input-wrapper input {
    width: 100%;
    height: 100%;
    padding: 0 8px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--auth-text);
    font-size: 13px;
}

.input-wrapper input::placeholder {
    color: #a7b0be;
}

.password-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 100%;
    padding: 0;
    background: transparent;
    color: #94a3b8;
}

.password-toggle:hover {
    color: var(--auth-primary);
}

.password-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.eye-close-icon {
    display: none;
}

.password-toggle.is-visible .eye-open-icon {
    display: none;
}

.password-toggle.is-visible .eye-close-icon {
    display: block;
}

.field-error {
    margin: 0;
    color: var(--auth-danger);
    font-size: 10px;
    line-height: 1.5;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: -3px;
}

.remember-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 11px;
    cursor: pointer;
    user-select: none;
}

.remember-checkbox input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.checkbox-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background: #ffffff;
    color: #ffffff;
    transition: 0.15s ease;
}

.checkbox-mark svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
}

.remember-checkbox input:checked + .checkbox-mark {
    border-color: var(--auth-primary);
    background: var(--auth-primary);
}

.remember-checkbox input:checked + .checkbox-mark svg {
    opacity: 1;
}

.remember-checkbox input:focus-visible + .checkbox-mark {
    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.13);
}

.secure-login-text {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #94a3b8;
    font-size: 10px;
}

.secure-login-text::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    content: "";
}

.login-submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    height: 49px;
    margin-top: 1px;
    border-radius: 10px;
    background:
        linear-gradient(
            135deg,
            var(--auth-primary),
            #3377f2
        );
    color: #ffffff;
    font-size: 13px;
    font-weight: 780;
    box-shadow:
        0 10px 24px rgba(37, 99, 235, 0.24);
    transition:
        background 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.login-submit-button:hover {
    background:
        linear-gradient(
            135deg,
            var(--auth-primary-dark),
            var(--auth-primary)
        );
    box-shadow:
        0 13px 28px rgba(37, 99, 235, 0.29);
    transform: translateY(-1px);
}

.login-submit-button:active {
    transform: translateY(0);
}

.login-submit-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-divider {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin: 28px 0 20px;
}

.login-divider span {
    height: 1px;
    background: var(--auth-line);
}

.login-divider p {
    margin: 0;
    color: #94a3b8;
    font-size: 9px;
    letter-spacing: 0.04em;
}

.login-help-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid #e7ebf2;
    border-radius: 11px;
    background: #f8fafc;
}

.login-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--auth-primary-soft);
    color: var(--auth-primary);
    font-size: 13px;
    font-weight: 850;
}

.login-help-box strong {
    display: block;
    margin-bottom: 3px;
    color: #475569;
    font-size: 11px;
    font-weight: 750;
}

.login-help-box p {
    margin: 0;
    color: #94a3b8;
    font-size: 9px;
    line-height: 1.5;
}

.login-card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 25px;
    color: #a1aab8;
    font-size: 9px;
}

.login-card-footer a:hover {
    color: var(--auth-primary);
}

/* 반응형 */

@media (max-width: 1100px) {
    .login-page {
        grid-template-columns: minmax(380px, 0.85fr) minmax(480px, 1.15fr);
    }

    .login-visual-inner {
        padding-right: 42px;
        padding-left: 42px;
    }

    .login-visual-content h1 {
        font-size: 41px;
    }
}

@media (max-width: 850px) {
    .login-page {
        display: block;
    }

    .login-visual {
        display: none;
    }

    .login-form-area {
        min-height: 100vh;
        padding: 40px 20px;
    }

    .login-card {
        padding: 38px 36px 34px;
    }

    .mobile-brand {
        display: inline-flex;
    }
}

@media (max-width: 520px) {
    .login-form-area {
        align-items: flex-start;
        padding: 22px 12px;
    }

    .login-card {
        width: 100%;
        padding: 28px 21px 27px;
        border-radius: 18px;
    }

    .mobile-brand {
        margin-bottom: 27px;
    }

    .mobile-brand .login-brand-symbol {
        width: 34px;
        height: 34px;
    }

    .mobile-brand .login-brand-name {
        font-size: 25px;
    }

    .login-card-header h2 {
        font-size: 25px;
    }

    .login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}

/* =========================
   회원가입 화면
========================= */

.register-card {
    padding-top: 36px;
    padding-bottom: 31px;
}

.register-form {
    gap: 17px;
}

.password-guide {
    margin: -1px 0 0;
    color: #94a3b8;
    font-size: 10px;
    line-height: 1.5;
}

.auth-switch-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 15px;
    border: 1px solid #e5eaf2;
    border-radius: 11px;
    background: #f8fafc;
}

.auth-switch-box p {
    margin: 0;
    color: #64748b;
    font-size: 10px;
    line-height: 1.5;
}

.auth-switch-box a {
    flex-shrink: 0;
    color: #2563eb;
    font-size: 11px;
    font-weight: 750;
}

.auth-switch-box a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

@media (max-width: 520px) {
    .register-card {
        padding-top: 28px;
    }

    .auth-switch-box {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}