body {
    margin: 0;
    min-height: 100vh;
    font-family: "Noto Serif SC", "STSong", "SimSun", serif;
    background: radial-gradient(circle at top, #f3e7cc 0%, #efe1c1 40%, #e5d1ac 100%);
    color: #3e2a1a;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(250, 242, 227, 0.9);
    border: 1px solid #d8bf94;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 10px 28px rgba(82, 53, 28, 0.18);
}

h1 {
    margin: 0;
    text-align: center;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.subtitle {
    text-align: center;
    margin: 8px 0 20px;
    color: #6a4c34;
}

.notice {
    display: none;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.92rem;
}

.notice.error {
    background: #fff0ef;
    border: 1px solid #ebb3ae;
    color: #972c20;
}

.notice.success {
    background: #eff9ef;
    border: 1px solid #a8d8ab;
    color: #236128;
}

.tab-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.tab-button {
    margin-top: 0;
    border: 1px solid #ccb188;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #6a4c34;
    background: #fff7ea;
    cursor: pointer;
}

.tab-button.active {
    color: #fff8eb;
    border-color: #8b5a2b;
    background: linear-gradient(180deg, #9d622f 0%, #7f481f 100%);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-size: 0.92rem;
    color: #5e4530;
    margin-top: 4px;
}

input {
    border: 1px solid #ccb188;
    border-radius: 8px;
    padding: 10px 12px;
    background: #fffdf8;
    color: #3e2a1a;
    font-size: 1rem;
}

input:focus {
    outline: none;
    border-color: #8b5a2b;
    box-shadow: 0 0 0 3px rgba(139, 90, 43, 0.14);
}

.inline-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 10px;
}

.code-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

button {
    margin-top: 12px;
    border: none;
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff8eb;
    background: linear-gradient(180deg, #9d622f 0%, #7f481f 100%);
    cursor: pointer;
}

button:hover {
    background: linear-gradient(180deg, #ab6e38 0%, #8b4f23 100%);
}

.secondary-button {
    margin-top: 0;
    padding: 10px 12px;
    background: linear-gradient(180deg, #6c7a52 0%, #55643f 100%);
}

.secondary-button:hover {
    background: linear-gradient(180deg, #76875a 0%, #5d6e46 100%);
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.hidden {
    display: none;
}

.hint {
    margin: 14px 0 0;
    text-align: center;
    font-size: 0.86rem;
    color: #7a5a3e;
}

@media (max-width: 480px) {
    .login-card {
        padding: 22px 16px;
        border-radius: 10px;
    }

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

    h1 {
        font-size: 1.5rem;
    }
}
