:root {
    --bg-main: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #f8fafc;
    --border: #e2e8f0;
    --accent: #d95d16;
    --accent-muted: rgba(217, 93, 22, 0.1);
    --text-main: #111827;
    --text-muted: #64748b;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-stage {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.auth-box {
    width: 100%;
    max-width: 640px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: 10px;
    padding: 26px 36px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}
.auth-header {
    margin-bottom: 18px;
}
.auth-header h1 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-main);
}
.auth-header p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.4;
}
.notice {
    background: var(--accent-muted);
    border-left: 3px solid var(--accent);
    color: #9a3412;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 16px;
}
.notice-error {
    background: #fef2f2;
    border-left-color: #dc2626;
    color: #991b1b;
}
form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
}
.field {
    margin-bottom: 14px;
}
.field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--text-muted);
    margin-bottom: 5px;
}
.field input {
    width: 100%;
    height: 40px;
    padding: 9px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-main);
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.field input:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-muted);
}
.password-wrap {
    position: relative;
}
.password-wrap input {
    padding-right: 38px;
}
.toggle-pass {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}
.toggle-pass:hover {
    color: var(--text-main);
}
.checkbox-row {
    grid-column: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}
.checkbox-row input[type="checkbox"] {
    accent-color: var(--accent);
    width: 15px;
    height: 15px;
}
.btn-submit {
    grid-column: 2;
    width: 100%;
    padding: 10px 16px;
    background: #111827;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: none;
    border-bottom: 2px solid var(--accent);
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.btn-submit:hover {
    background: var(--accent);
}
@media (max-width: 600px) {
    .auth-box {
        padding: 24px 20px;
    }
    form {
        grid-template-columns: 1fr;
    }
    .checkbox-row,
    .btn-submit {
        grid-column: 1;
    }
    .checkbox-row {
        margin-bottom: 14px;
    }
}
