:root {
    --auth-bg: #f5f6f8;
    --auth-surface: #ffffff;
    --auth-ink: #17191d;
    --auth-muted: #69717d;
    --auth-line: #e5e8ee;
    --auth-orange: #ff5a1f;
    --auth-red: #dd3b30;
    --auth-radius: 8px;
    --auth-shadow: 0 18px 42px rgba(18, 26, 42, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--auth-bg);
    color: var(--auth-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
    font-size: 15px;
    letter-spacing: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

.auth-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 32px 18px;
}

.auth-panel {
    display: grid;
    gap: 24px;
    width: min(100%, 420px);
    padding: 30px;
    border: 1px solid var(--auth-line);
    border-radius: var(--auth-radius);
    background: var(--auth-surface);
    box-shadow: var(--auth-shadow);
}

.auth-panel--wide {
    width: min(100%, 620px);
}

.auth-brand {
    display: inline-flex;
    flex-direction: column;
    width: max-content;
    font-weight: 950;
    line-height: 1;
}

.auth-brand > span {
    font-size: 28px;
}

.auth-brand > span span,
.auth-copy span {
    color: var(--auth-orange);
}

.auth-brand small {
    margin-top: 7px;
    color: var(--auth-muted);
    font-size: 12px;
    font-weight: 800;
}

.auth-copy h1 {
    margin: 6px 0 0;
    font-size: 30px;
    line-height: 1.2;
}

.auth-copy span {
    font-size: 13px;
    font-weight: 900;
}

.auth-form {
    display: grid;
    gap: 14px;
}

.auth-form label {
    display: grid;
    gap: 7px;
}

.auth-form label[hidden] { display: none; }

.checkbox-control { width:18px; height:18px; accent-color:var(--auth-orange); }

.auth-form label span {
    color: #3d4550;
    font-size: 13px;
    font-weight: 900;
}

.form-control {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--auth-line);
    border-radius: var(--auth-radius);
    background: #fff;
    color: var(--auth-ink);
    outline: 0;
}

.form-control:focus {
    border-color: var(--auth-orange);
    box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.12);
}

.auth-form em,
.auth-errors {
    color: var(--auth-red);
    font-size: 12px;
    font-style: normal;
    font-weight: 850;
}

.field-help {
    color: var(--auth-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.field-help ul {
    margin: 0;
    padding-left: 18px;
}

.username-check-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.auth-form .username-check-button {
    min-width: 92px;
    min-height: 44px;
    padding: 0 14px;
    border-color: #d9dee7;
    background: #fff;
    color: #343b46;
    font-size: 13px;
}

.auth-form .username-check-button:hover {
    border-color: var(--auth-orange);
    color: var(--auth-orange);
}

.field-status {
    min-height: 18px;
    color: var(--auth-muted);
    font-size: 12px;
    font-weight: 800;
}

.field-status.is-valid {
    color: #12805c;
}

.field-status.is-invalid {
    color: var(--auth-red);
}

.password-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--auth-muted);
    font-size: 12px;
    font-weight: 750;
}

.password-rules li::before {
    content: "○";
    margin-right: 4px;
}

.password-rules li.is-valid {
    color: #12805c;
}

.password-rules li.is-valid::before {
    content: "●";
}

.auth-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    border: 1px solid var(--auth-orange);
    border-radius: var(--auth-radius);
    background: var(--auth-orange);
    color: #fff;
    font-weight: 950;
    cursor: pointer;
}

.auth-form button svg {
    width: 18px;
    height: 18px;
}

.auth-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--auth-muted);
    font-size: 13px;
    font-weight: 900;
}

.auth-links a:hover {
    color: var(--auth-orange);
}

.account-status-panel {
    width: min(100%, 560px);
}

.account-status-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 50%;
    background: #fff1eb;
    color: var(--auth-orange);
}

.account-status-icon svg {
    width: 26px;
    height: 26px;
}

.account-status-copy {
    margin: -8px 0 0;
    color: var(--auth-muted);
    font-weight: 750;
    line-height: 1.7;
}

.account-status-updated {
    margin: -2px 0 0;
    color: #8a929d;
    font-size: 12px;
    font-weight: 800;
}

.account-status-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.account-status-actions a,
.account-status-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--auth-line);
    border-radius: var(--auth-radius);
    background: #fff;
    color: #3d4550;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.account-status-actions form {
    margin: 0;
}

.account-status-actions .account-status-primary {
    border-color: var(--auth-orange);
    background: var(--auth-orange);
    color: #fff;
}

@media (max-width: 520px) {
    .auth-panel {
        padding: 24px;
    }

    .auth-brand > span,
    .auth-copy h1 {
        font-size: 24px;
    }

    .username-check-row {
        grid-template-columns: 1fr;
    }
}
