/* =========================================================
   회원가입·로그인 페이지 전용 스타일
   파일 위치: static/css/pages/auth.css
========================================================= */

.auth-page {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 180px);
    padding: 64px 20px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(59, 130, 246, 0.14),
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(30, 58, 95, 0.12),
            transparent 34%
        ),
        #f4f7fb;
}

.auth-page::before,
.auth-page::after {
    position: absolute;
    border-radius: 50%;
    content: "";
    filter: blur(1px);
    pointer-events: none;
}

.auth-page::before {
    top: -140px;
    right: -120px;
    width: 340px;
    height: 340px;
    background: rgba(59, 130, 246, 0.08);
}

.auth-page::after {
    bottom: -180px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: rgba(30, 58, 95, 0.07);
}

.auth-card {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(330px, 0.9fr) minmax(480px, 1.2fr);
    width: min(1080px, 100%);
    min-height: 680px;
    overflow: hidden;
    border: 1px solid rgba(203, 213, 225, 0.8);
    border-radius: 26px;
    background: #ffffff;
    box-shadow:
        0 30px 80px rgba(15, 23, 42, 0.14),
        0 8px 24px rgba(15, 23, 42, 0.06);
}

/* 왼쪽 소개 영역 */

.auth-intro {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 52px 44px;
    overflow: hidden;
    color: #ffffff;
    background:
        linear-gradient(
            145deg,
            rgba(15, 42, 75, 0.97),
            rgba(30, 80, 135, 0.94)
        );
}

.auth-intro::before {
    position: absolute;
    top: -90px;
    right: -100px;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    content: "";
}

.auth-intro::after {
    position: absolute;
    right: -80px;
    bottom: -100px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.2);
    content: "";
}

.auth-brand,
.auth-intro-content,
.auth-intro-footer {
    position: relative;
    z-index: 1;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.auth-brand-mark {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 1.5rem;
    backdrop-filter: blur(10px);
}

.auth-brand-text strong,
.auth-brand-text span {
    display: block;
}

.auth-brand-text strong {
    font-size: 1rem;
}

.auth-brand-text span {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.78rem;
}

.auth-intro-content {
    margin: 60px 0;
}

.auth-intro-kicker {
    display: inline-block;
    margin-bottom: 18px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #dbeafe;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.auth-intro h2 {
    margin-bottom: 18px;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.25;
    letter-spacing: -0.04em;
}

.auth-intro-description {
    max-width: 360px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.96rem;
    line-height: 1.8;
}

.auth-benefits {
    display: grid;
    gap: 14px;
    margin-top: 32px;
}

.auth-benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
}

.auth-benefit-icon {
    display: grid;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.13);
    font-size: 0.86rem;
}

.auth-intro-footer {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
}

/* 오른쪽 회원가입 폼 */

.auth-form-panel {
    padding: 48px 54px;
    background: #ffffff;
}

.auth-form-header {
    margin-bottom: 32px;
}

.auth-form-eyebrow {
    margin-bottom: 8px;
    color: #2563eb;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-form-header h1 {
    margin-bottom: 10px;
    color: #172033;
    font-size: 2rem;
    line-height: 1.25;
    letter-spacing: -0.04em;
}

.auth-form-header p {
    color: #64748b;
    font-size: 0.94rem;
}

.signup-form {
    display: grid;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field.full {
    grid-column: 1 / -1;
}

.form-label {
    color: #334155;
    font-size: 0.86rem;
    font-weight: 700;
}

.form-required {
    margin-left: 3px;
    color: #ef4444;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    color: #94a3b8;
    font-size: 0.92rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.signup-form input,
.signup-form select {
    width: 100%;
    height: 50px;
    padding: 0 15px 0 44px;
    border: 1px solid #dbe3ec;
    border-radius: 12px;
    outline: none;
    background: #f9fbfd;
    color: #172033;
    font-size: 0.92rem;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.signup-form select {
    cursor: pointer;
    appearance: auto;
}

.signup-form input::placeholder {
    color: #a3afbf;
}

.signup-form input:hover,
.signup-form select:hover {
    border-color: #b8c6d8;
    background: #ffffff;
}

.signup-form input:focus,
.signup-form select:focus {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.form-help {
    color: #94a3b8;
    font-size: 0.76rem;
    line-height: 1.5;
}

.terms-box {
    padding: 15px 17px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.terms-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #475569;
    font-size: 0.84rem;
    line-height: 1.55;
    cursor: pointer;
}

.terms-label input {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    padding: 0;
    accent-color: #2563eb;
}

.terms-label a {
    color: #2563eb;
    font-weight: 700;
}

.signup-button {
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    cursor: pointer;
    box-shadow: 0 13px 25px rgba(37, 99, 235, 0.24);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.signup-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 17px 30px rgba(37, 99, 235, 0.3);
    filter: brightness(1.03);
}

.signup-button:active {
    transform: translateY(0);
}

.auth-switch {
    margin-top: 24px;
    color: #64748b;
    font-size: 0.87rem;
    text-align: center;
}

.auth-switch a {
    margin-left: 5px;
    color: #2563eb;
    font-weight: 800;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* =========================================================
   로그인 페이지 추가 스타일
========================================================= */

.auth-card--login {
    min-height: 620px;
}

.auth-login-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form {
    gap: 22px;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: -4px;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.84rem;
    cursor: pointer;
}

.remember-label input {
    width: 17px;
    height: 17px;
    margin: 0;
    padding: 0;
    accent-color: #2563eb;
}

.password-find-link {
    color: #2563eb;
    font-size: 0.84rem;
    font-weight: 700;
}

.password-find-link:hover {
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 26px 0 18px;
    color: #94a3b8;
    font-size: 0.78rem;
}

.auth-divider::before,
.auth-divider::after {
    flex: 1;
    height: 1px;
    background: #e2e8f0;
    content: "";
}

.secondary-auth-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52px;
    border: 1px solid #cbd5e1;
    border-radius: 13px;
    background: #ffffff;
    color: #334155;
    font-size: 0.92rem;
    font-weight: 800;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.secondary-auth-button:hover {
    border-color: #3b82f6;
    background: #f8fbff;
    color: #2563eb;
    transform: translateY(-1px);
}


/* =========================================================
   태블릿 반응형
========================================================= */

@media (max-width: 920px) {
    .auth-card {
        grid-template-columns: 1fr;
        width: min(680px, 100%);
    }

    .auth-intro {
        min-height: 300px;
        padding: 38px;
    }

    .auth-intro-content {
        margin: 40px 0 20px;
    }

    .auth-benefits,
    .auth-intro-footer {
        display: none;
    }
}


/* =========================================================
   모바일 반응형
========================================================= */

@media (max-width: 620px) {
    .auth-page {
        align-items: flex-start;
        padding: 24px 12px 90px;
    }

    .auth-card {
        border-radius: 20px;
    }

    .auth-card--login {
        min-height: auto;
    }

    .auth-intro {
        min-height: 250px;
        padding: 28px 24px;
    }

    .auth-intro h2 {
        font-size: 1.8rem;
    }

    .auth-form-panel {
        padding: 32px 22px;
    }

    .auth-form-header h1 {
        font-size: 1.65rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}
.login-notice{display:flex;width:100%;margin:0 0 20px;padding:14px 16px;border:1px solid transparent;border-radius:10px;align-items:flex-start;gap:11px;font-size:14px;font-weight:700;line-height:1.6;word-break:keep-all}.login-notice__icon{display:inline-flex;width:24px;height:24px;flex-shrink:0;border-radius:50%;align-items:center;justify-content:center;color:#fff;font-weight:900}.login-notice__text{flex:1}.login-notice--warning{border-color:#e7c76e;color:#6f4c00;background:#fff7dc}.login-notice--warning .login-notice__icon{background:#dda321}.login-notice--error{border-color:#e8aaaa;color:#922929;background:#fff0f0}.login-notice--error .login-notice__icon{background:#d84646}
