/* ── 로그인·회원가입 페이지 ─────────────────────────────── */

article.member {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-primary);
    padding: 24px 16px;
}

article.member .content {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 40px 36px 36px;
}

/* ── 로고 영역 ── */

article.member .content > figure {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--accent-light);
    border-radius: 18px;
    font-size: 30px;
    color: var(--primary-mid);
}

article.member .content > h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin: 0 0 6px;
    letter-spacing: -0.5px;
}

article.member .content > .subtitle {
    font-size: 13px;
    color: var(--sub-text);
    text-align: center;
    margin: 0 0 28px;
}

/* ── 구분선 ── */

.member-divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 24px;
}

/* ── Input Group ── */

.input_group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.input_group > label.tit {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--sub-text);
    margin-bottom: 4px;
    letter-spacing: 0;
}

.input_group .input_wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input_group .input_wrap > input[type="text"],
.input_group .input_wrap > input[type="password"] {
    flex: 1;
    height: 48px;
    width: 100%;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-primary);
    padding: 0 14px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: #fff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    letter-spacing: 0;
}

.input_group .input_wrap > input:focus {
    border-color: var(--primary-mid);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input_group .input_wrap > input::placeholder {
    color: #c0c9d8;
}

/* ── 중복 확인 버튼 (input_wrap 안) ── */

article.member .input_wrap > button {
    flex-shrink: 0;
    height: 48px;
    padding: 0 14px;
    margin-left: 8px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    color: var(--primary-mid);
    background: var(--accent-light);
    border: 1.5px solid var(--primary-mid);
    border-radius: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0;
}

article.member .input_wrap > button:active {
    background: var(--primary-mid);
    color: #fff;
}

article.member .input_wrap > button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── 유효성 메시지 ── */

em.a_box {
    display: block;
    font-size: 12px;
    font-weight: 500;
    font-style: normal;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
}

.a_box.red {
    color: #dc2626;
    border-color: #fecaca;
    background: #fef2f2;
}

.a_box.green {
    color: #16a34a;
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.a_box.hide {
    display: none !important;
}

/* 제출 버튼 바로 위 독립 에러 메시지(serverError/loginError) — 버튼과 붙지 않도록 여백 확보 */
#serverError,
#loginError {
    margin-bottom: 12px;
}

/* ── 제출 버튼 ── */

article.member .btn-mem {
    display: block;
    width: 100%;
    height: 50px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: var(--primary-mid);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.5px;
}

article.member .btn-mem:active {
    background: #1d4ed8;
    transform: scale(0.99);
}

article.member .btn-mem:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ── 오류 안내 페이지 ── */

article.member .content > figure.icon-error {
    background: #fef2f2;
    color: #dc2626;
}

article.member .content > a.btn-mem {
    display: block;
    text-decoration: none;
    text-align: center;
    line-height: 50px;
}

/* ── 하단 링크 ── */

.find_list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    text-align: center;
}

.find_list li {
    font-size: 13px;
    color: var(--sub-text);
}

.find_list li + li {
    margin-top: 6px;
}

.find_list li a {
    font-weight: 700;
    color: var(--primary-mid);
    margin-left: 6px;
    text-decoration: none;
    transition: color 0.2s;
}

.find_list li a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.find_list li.join {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
