/* ===== Auth Pages Shared Styles ===== */
/* Used by: login.html, register.html, email-verified.html */

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

body {
    font-family: var(--font-sans);
    background-color: var(--surface-page);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---- Layout ---- */
.auth-container {
    width: 100%;
    max-width: 440px;
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
}

.auth-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: var(--shadow-sm);
}
@media (max-width: 480px) {
    .auth-container { padding: 16px; }
    .auth-card { padding: 28px 20px; }
}

.auth-card.text-center {
    text-align: center;
}

/* ---- Top Bar ---- */
.auth-top-bar {
    width: 100%;
    height: 60px;
    display: flex; align-items: center;
    padding: 0 24px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}
.auth-top-brand {
    text-decoration: none;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-strong);
}
.auth-top-brand span {
    color: var(--primary-color);
}

/* ---- Title ---- */
.auth-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-strong);
    margin-bottom: 24px;
    text-align: center;
}

/* ---- Form ---- */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}
.form-group input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-white);
    transition: border-color .15s, box-shadow .15s;
    outline: none;
}
.form-group input:focus { border-color: var(--primary-color); box-shadow: var(--focus-ring); }
.form-hint { font-size: 12px; color: var(--text-light); margin-top: 4px; }

/* ---- Primary Button (shared) ---- */
.btn-primary-custom {
    min-height: 44px;
    padding: 0 16px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    transition: background-color .15s;
}
.btn-primary-custom:hover { background: var(--primary-dark); }
.btn-primary-custom:disabled { opacity: .55; cursor: not-allowed; }

/* Button variant (form submit) */
button.btn-primary-custom {
    width: 100%;
    cursor: pointer;
    margin-top: 8px;
}

/* Link variant (navigation) */
a.btn-primary-custom {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 40px;
    text-decoration: none;
}
a.btn-primary-custom:hover { color: #fff; }

/* ---- Footer ---- */
.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-gray);
}
.auth-footer a { color: var(--primary-color); text-decoration: none; font-weight: 500; }
.auth-footer a:hover { text-decoration: underline; }

/* ---- Alert ---- */
.alert-box {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    margin-bottom: 16px;
    display: none;
}
.alert-error { background: var(--danger-soft); color: var(--danger-color); border: 1px solid var(--danger-border); }
.alert-success { background: var(--success-soft); color: var(--success-color); border: 1px solid var(--success-border); }

/* ---- Resend Button ---- */
.btn-resend {
    padding: 8px 20px;
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-resend:hover { background: var(--primary-color); color: #fff; }
.btn-resend:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---- Email Verified (success) ---- */
.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}
.success-icon svg {
    width: 40px;
    height: 40px;
    color: var(--success-color);
}
.success-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}
.success-desc {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* ===== 가입·인증·비밀번호 찾기 공용 (register / email-verified / password-forgot) ===== */
.form-group input.is-invalid { border-color: var(--danger-color); }
.form-group input.is-invalid:focus { box-shadow: 0 0 0 3px rgba(var(--danger-rgb), .15); }
.field-error { display: none; font-size: 12px; color: var(--danger-color); margin-top: 4px; }
.field-error.show { display: block; }

.alert-info { background: var(--info-soft); color: var(--info-color); border: 1px solid var(--info-border); }
.alert-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.alert-actions a, .alert-actions button {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: var(--radius-md);
    font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer;
    background: var(--bg-white); color: var(--text-dark); border: 1px solid var(--border-strong);
}
.alert-actions a:hover, .alert-actions button:hover { background: var(--surface-hover); color: var(--text-dark); }
.alert-actions button:disabled { opacity: .55; cursor: not-allowed; }

.status-panel { text-align: center; }
.status-icon {
    width: 64px; height: 64px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; font-size: 26px;
    background: var(--primary-soft); color: var(--primary-color);
}
.status-icon.success { background: var(--success-soft); color: var(--success-color); }
.status-icon.warning { background: var(--warning-soft); color: var(--warning-color); }
.status-icon.danger  { background: var(--danger-soft);  color: var(--danger-color); }
.status-title { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; color: var(--text-strong); margin-bottom: 8px; }
.status-desc { font-size: 14.5px; line-height: 1.65; color: var(--text-gray); margin-bottom: 20px; }
.sent-to {
    display: block; margin: 10px auto 4px; padding: 10px 14px;
    background: var(--bg-light); border: 1px solid var(--border-color); border-radius: var(--radius-md);
    font-weight: 700; color: var(--text-strong); word-break: break-all;
}
.sent-from { display: block; font-size: 12.5px; color: var(--text-light); }

.steps {
    list-style: none; text-align: left; counter-reset: step;
    margin: 0 0 20px; padding: 12px 16px;
    background: var(--bg-light); border: 1px solid var(--border-color); border-radius: var(--radius-md);
}
.steps li {
    position: relative; counter-increment: step;
    padding-left: 30px; margin: 6px 0;
    font-size: 13.5px; line-height: 1.6; color: var(--text-dark);
}
.steps li::before {
    content: counter(step);
    position: absolute; left: 0; top: 1px;
    width: 20px; height: 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-color); color: var(--on-primary);
    font-size: 11px; font-weight: 700;
}

.btn-stack { display: flex; flex-direction: column; gap: 10px; }
.btn-stack .btn-primary-custom { width: 100%; margin-top: 0; }
.btn-outline-custom {
    width: 100%; min-height: 44px; padding: 0 16px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: transparent; color: var(--text-dark);
    border: 1px solid var(--border-strong); border-radius: var(--radius-md);
    font-size: 14.5px; font-weight: 600; text-decoration: none; cursor: pointer;
    transition: background-color .15s;
}
.btn-outline-custom:hover { background: var(--surface-hover); color: var(--text-dark); }
.btn-outline-custom:disabled { opacity: .55; cursor: not-allowed; }

.help-text { font-size: 12.5px; line-height: 1.65; color: var(--text-light); margin-top: 16px; }
.help-text a { color: var(--primary-color); text-decoration: none; font-weight: 500; }
.help-text a:hover { text-decoration: underline; }

.code-input {
    font-family: var(--font-mono) !important;
    font-size: 22px !important; letter-spacing: 8px; text-align: center;
}
.auth-sub { font-size: 14px; line-height: 1.6; color: var(--text-gray); text-align: center; margin: -14px 0 22px; }
.pw-toggle-wrap { position: relative; }
.pw-toggle-wrap input { padding-right: 42px; }
.pw-toggle {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; border: none; background: transparent;
    color: var(--text-light); cursor: pointer; border-radius: var(--radius-sm);
}
.pw-toggle:hover { color: var(--text-dark); }
.is-hidden { display: none !important; }
