/* ==========================================================================
   Auth styles — shared by login.html & signup.html
   ========================================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: linear-gradient(135deg, #1B2A4A 0%, #2d4a7a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: #fff;
    border-radius: 16px;
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.auth-card h1 {
    font-size: 1.75rem;
    color: #1B2A4A;
    text-align: center;
    margin-bottom: 0.5rem;
}
.auth-card .subtitle {
    text-align: center;
    color: #5A6480;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    font-weight: 500;
    color: #5A6480;
    margin-bottom: 0;
    font-size: 0.85rem;
}
.form-group input {
    width: 100%;
    padding: 0.6rem 0;
    border: none;
    border-bottom: 1.5px solid #E4E7EF;
    border-radius: 0;
    background: transparent;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    color: #1B2A4A;
}
.form-group input:focus {
    outline: none;
    border-bottom-color: #1B2A4A;
}
.form-group input::placeholder {
    color: #5A6480;
    font-size: 0.9rem;
}

/* Validation error */
.form-group.has-error input {
    border-bottom-color: #dc2626;
}
.form-group.has-error label {
    color: #dc2626;
}
.form-group__error {
    font-size: 0.8rem;
    color: #dc2626;
    margin-top: 0.25rem;
}

.btn-submit {
    width: 100%;
    padding: 0.85rem;
    background: #1B2A4A;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    margin-top: 0.5rem;
}
.btn-submit:hover {
    background: #111E36;
    transform: translateY(-2px);
}

.message {
    text-align: center;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}
.message.error { background: #fef2f2; color: #dc2626; }
.message.success { background: #f0fdf4; color: #16a34a; }

.auth-link {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem 0.6rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #5A6480;
}
.auth-link a {
    color: #E87722;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}
.auth-link a:hover { text-decoration: underline; }

.logo-link {
    display: block;
    text-align: center;
    margin-bottom: 1.5rem;
    text-decoration: none;
    color: #E87722;
    font-weight: 700;
    font-size: 1.2rem;
}

.auth-link__sep {
    color: #c0c5d4;
}

/* ---- Mobile responsive ---- */
@media (max-width: 480px) {
    body { padding: 1rem; }
    .auth-card {
        padding: 2rem 1.5rem;
        border-radius: 12px;
    }
    .auth-card h1 { font-size: 1.4rem; }
    .auth-card .subtitle {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
    .form-group { margin-bottom: 1.25rem; }
    .form-group label { font-size: 0.8rem; }
    .form-group input,
    .form-group input::placeholder { font-size: 0.9rem; }
    .btn-submit { font-size: 0.95rem; padding: 0.75rem; }
    .auth-link {
        font-size: 0.8rem;
        gap: 0.3rem 0.45rem;
    }
    .logo-link { font-size: 1.1rem; margin-bottom: 1.25rem; }
}

@media (max-width: 360px) {
    .auth-card { padding: 1.75rem 1.25rem; }
    .auth-card h1 { font-size: 1.25rem; }
    .auth-link { font-size: 0.75rem; }
}

.result-section {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: #f8f9fc;
    border-radius: 10px;
    border: 1px solid #eef0f6;
}
.result-title {
    text-align: center;
    font-size: 0.8rem;
    color: #1B2A4A;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.result-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.result-list__item {
    padding: 0.6rem 0.85rem;
    background: #fff;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #333;
    border: 1px solid #eef0f6;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    letter-spacing: 0.2px;
}
.result-list__empty {
    padding: 0.75rem;
    text-align: center;
    color: #8a93a6;
    font-size: 0.9rem;
}
