/* UI text font policy: use Naver NanumSquareNeo for auth pages. */
@font-face {
    font-family: 'NanumSquareNeo';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://hangeul.pstatic.net/hangeul_static/webfont/NanumSquareNeo/NanumSquareNeoTTF-bRg.woff2') format('woff2'),
         url('https://hangeul.pstatic.net/hangeul_static/webfont/NanumSquareNeo/NanumSquareNeoTTF-bRg.woff') format('woff');
}

* {
    font-family: 'NanumSquareNeo', 'Apple SD Gothic Neo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #fcfdfd;
    margin: 0;
    font-family: 'NanumSquareNeo', 'Apple SD Gothic Neo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #6b7280;
}

.auth-container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
}

.auth-card {
    background-color: #fefefe;
    padding: 3rem 2.5rem;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #2c94ff;
}

.auth-logo svg {
    width: 40px;
    height: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #1a202c;
}

.auth-header p {
    color: #6b7280;
    font-size: 0.9375rem;
    margin: 0;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    color: #1a202c;
    font-size: 0.9375rem;
}

.form-control {
    border-radius: 4px;
    border: 1px solid #e9ecef;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #2c94ff;
    box-shadow: 0 0 0 0.2rem rgba(44, 148, 255, 0.15);
    outline: 0;
}

.btn-primary {
    background-color: #2c94ff;
    border-color: #2c94ff;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.15s ease-in-out;
}

.btn-primary:hover {
    background-color: #1e7de6;
    border-color: #1e7de6;
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(44, 148, 255, 0.25);
}

.alert {
    border-radius: 4px;
    padding: 0.875rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    border: 1px solid transparent;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.switch-form-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9375rem;
}

.switch-form-link a {
    color: #2c94ff;
    text-decoration: none;
    font-weight: 600;
}

.switch-form-link a:hover {
    color: #1e7de6;
    text-decoration: underline;
}

.alert-link {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

.alert-link:hover {
    opacity: 0.8;
}

/* Language selector (모바일에서도 표시 — 로그인 전에 언어를 고를 곳이 여기뿐이다) */
.auth-lang-selector {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.8125rem;
    color: #6c757d;
}
.auth-lang-selector a {
    color: #6c757d;
    text-decoration: none;
    padding: 0 0.25rem;
    transition: color 0.15s;
}
.auth-lang-selector a:hover {
    color: #2c94ff;
}
.auth-lang-selector a.active {
    color: #2c94ff;
    font-weight: 600;
}
.auth-lang-sep {
    color: #ced4da;
    margin: 0 0.125rem;
}
/* ===== 모바일 반응형 ===== */
@media (max-width: 575px) {
    body {
        align-items: flex-start;
        padding-top: 1rem;
    }

    .auth-container {
        padding: 10px;
    }

    .auth-card {
        padding: 1.5rem 1.25rem;
        border-radius: 4px;
    }

    .auth-logo {
        margin-bottom: 1.25rem;
        font-size: 1.25rem;
        gap: 8px;
    }

    .auth-logo img {
        height: 32px !important;
    }

    .auth-header {
        margin-bottom: 1.25rem;
    }

    .auth-header h1 {
        font-size: 1.35rem;
    }

    .auth-header p {
        font-size: 0.875rem;
    }

    .form-group label {
        font-size: 0.875rem;
    }

    .form-control {
        font-size: 16px; /* iOS 줌 방지 */
        padding: 0.5rem 0.75rem;
    }

    .btn-primary {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }

    .switch-form-link {
        font-size: 0.875rem;
        margin-top: 1rem;
    }

    .alert {
        font-size: 0.875rem;
        padding: 0.75rem;
    }

    /* 소셜 로그인 버튼 */
    .social-login-btn,
    .btn-outline-secondary {
        font-size: 0.875rem !important;
        padding: 0.5rem 0.75rem !important;
    }

    /* 구분선 텍스트 */
    .divider-text,
    .text-muted {
        font-size: 0.8125rem;
    }
}

@media (max-width: 767px) {
    .auth-lang-selector {
        margin-top: 1rem;
        line-height: 2;
    }
}
