.auth-box {
    width: 340px;
    max-width: 92vw;
    background: #1c1c1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    margin: auto;
    position: relative;
}

.auth-head {
    padding: 24px 24px 0;
    text-align: center;
}

.auth-logo {
    font-family: Georgia, serif;
    font-size: 18px;
    color: #c8a87a;
    letter-spacing: 6px;
    margin-bottom: 4px;
}

.auth-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.05em;
}

.auth-tabs {
    display: flex;
    margin: 20px 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-tab {
    flex: 1;
    padding: 9px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    letter-spacing: 0.04em;
}

.auth-tab:hover { color: rgba(255, 255, 255, 0.6); }

.auth-tab.act {
    color: #c8a87a;
    border-bottom-color: #6B4E31;
}

.auth-body { padding: 20px 24px 24px; }

.auth-panel { display: none; }
.auth-panel.act { display: block; }

.auth-error {
    background: rgba(149, 64, 64, 0.2);
    border: 1px solid rgba(149, 64, 64, 0.4);
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 11px;
    color: #e08080;
    margin-bottom: 14px;
}

.auth-field { margin-bottom: 14px; }

.auth-field label {
    display: block;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 5px;
    letter-spacing: 0.06em;
}

.auth-field input {
    width: 100%;
    background: #111110;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 9px 12px;
    color: #ccc;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.auth-field input:focus { border-color: #6B4E31; }

.auth-field input::placeholder {
    color: rgba(255, 255, 255, 0.2);
    font-size: 12px;
}

.auth-pw-wrap { position: relative; }
.auth-pw-wrap input { padding-right: 36px; }

.auth-pw-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.25);
    padding: 2px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.auth-pw-toggle:hover { color: rgba(255, 255, 255, 0.6); }

.auth-forgot {
    display: block;
    text-align: right;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    margin-top: -8px;
    margin-bottom: 16px;
    transition: color 0.2s;
}

.auth-forgot:hover { color: #c8a87a; }

.auth-submit {
    width: 100%;
    padding: 10px;
    background: #333330;
    border: 1px solid rgba(200, 168, 122, 0.30);
    border-radius: 5px;
    color: #e8dcc8;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: background 0.2s, border-color 0.2s;
    margin-top: 4px;
}

.auth-submit:hover { background: #3d3d39; border-color: rgba(200, 168, 122, 0.50); }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.2);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
}

.auth-switch-hint {
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
}

.auth-switch-hint a {
    color: #c8a87a;
    text-decoration: none;
    margin-left: 4px;
}

.auth-strength {
    height: 3px;
    border-radius: 2px;
    margin-top: 6px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.auth-strength-bar {
    height: 100%;
    border-radius: 2px;
    width: 0;
    transition: width 0.3s, background 0.3s;
}

.auth-terms {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.25);
    text-align: center;
    margin-top: 14px;
    line-height: 1.7;
}

.auth-terms a {
    color: rgba(200, 168, 122, 0.5);
    text-decoration: none;
}

.auth-terms a:hover { color: #c8a87a; }
