* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --ink: #2b3345;
    --accent-blue: #3a77ff;
    --soft-border: #dbe4f2;
}

body {
    min-height: 100vh;
    font-family: 'Noto Sans KR', Arial, sans-serif;
    background: linear-gradient(180deg, #f7fbff 0%, #edf4ff 100%);
    color: var(--ink);
}

.auth-topbar {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e4ebf5;
    background-color: rgba(255, 255, 255, 0.96);
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #1e2433;
    text-decoration: none;
    font-size: 25px;
    font-weight: 800;
}

.auth-logo img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #d8e8ff;
    box-shadow: 0 4px 10px rgba(15, 52, 96, 0.18);
}

.auth-page {
    min-height: calc(100vh - 70px);
    display: grid;
    place-items: center;
    padding: 34px 16px;
}

.auth-card {
    width: min(100%, 430px);
    border: 1px solid #dfe8f6;
    border-radius: 18px;
    background-color: #fff;
    box-shadow: 0 22px 50px rgba(15, 52, 96, 0.12);
    padding: 30px 26px 26px;
}

.auth-card h1 {
    margin-bottom: 8px;
    color: #1e293b;
    font-size: 28px;
    line-height: 1.2;
}

.auth-card p {
    margin-bottom: 24px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.auth-form {
    display: grid;
    gap: 14px;
}

.auth-field {
    display: grid;
    gap: 7px;
}

.auth-field label {
    color: #334155;
    font-size: 14px;
    font-weight: 800;
}

.auth-field input {
    width: 100%;
    height: 46px;
    border: 1px solid var(--soft-border);
    border-radius: 10px;
    padding: 0 13px;
    color: #1f2937;
    font-size: 15px;
}

.auth-field input:focus {
    border-color: var(--accent-blue);
    outline: 3px solid rgba(58, 119, 255, 0.16);
}

.auth-submit {
    height: 48px;
    margin-top: 6px;
    border: 0;
    border-radius: 10px;
    background-color: var(--accent-blue);
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(58, 119, 255, 0.24);
}

.auth-submit:disabled {
    cursor: wait;
    opacity: 0.72;
}

.auth-status {
    min-height: 21px;
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
}

.auth-status.is-error {
    color: #d33a2c;
}

.auth-status.is-success {
    color: #1f8a4c;
}

.auth-switch {
    margin-top: 18px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.auth-switch a {
    color: var(--accent-blue);
    font-weight: 900;
    text-decoration: none;
}

@media (max-width: 520px) {
    .auth-topbar {
        height: 62px;
    }

    .auth-card {
        padding: 24px 18px 22px;
        border-radius: 14px;
    }

    .auth-card h1 {
        font-size: 25px;
    }
}
