:root {
    --font-family: 'Roboto', sans-serif;
    --text: #223047;
    --muted: #5e6d85;
    --card-bg: #ffffff;
    --border: #d6deea;
    --accent: #1f8ef1;
    --accent-hover: #1578d1;
    --bg-start: #4facfe;
    --bg-end: #00d7f8;
    --status-bg: #f2f8ff;
    --status-border: #b9d8ff;
    --status-color: #144e85;
}

* {
    box-sizing: border-box;
}

body.auth-page {
    margin: 0;
    min-height: 100vh;
    padding: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-family);
    color: var(--text);
    background: linear-gradient(135deg, var(--bg-start), var(--bg-end));
}

body.auth-page.theme-danger {
    --accent: #d74d4d;
    --accent-hover: #bf3a3a;
    --bg-start: #ff8f8f;
    --bg-end: #ff5c69;
    --status-bg: #fff4f4;
    --status-border: #ffc9c9;
    --status-color: #902d2d;
}

.auth-shell {
    width: 100%;
    max-width: 460px;
}

.auth-card {
    background: var(--card-bg);
    border-radius: 14px;
    box-shadow: 0 16px 34px rgba(9, 30, 66, 0.18);
    padding: 30px 28px;
}

.auth-card h1 {
    margin: 0 0 10px;
    text-align: center;
    font-size: 1.9rem;
    line-height: 1.15;
}

.auth-subtitle {
    margin: 0 0 22px;
    text-align: center;
    color: var(--muted);
    line-height: 1.5;
}

.auth-warning {
    margin: 0 0 22px;
    border: 1px solid #ffd0d0;
    border-radius: 8px;
    background: #fff6f6;
    color: #873131;
    padding: 12px;
    line-height: 1.4;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-form label {
    font-size: 0.95rem;
    font-weight: 500;
}

.auth-form input[type="text"],
.auth-form input[type="password"] {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 11px 12px;
    font-size: 0.95rem;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="password"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(31, 142, 241, 0.15);
}

.auth-form .registerbtn,
.auth-form .deactivatebtn,
.auth-form .action-btn {
    border: none;
    border-radius: 8px;
    padding: 12px;
    margin-top: 4px;
    font-size: 0.98rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--accent);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.auth-form .registerbtn:hover,
.auth-form .deactivatebtn:hover,
.auth-form .action-btn:hover {
    background: var(--accent-hover);
}

.g-recaptcha {
    display: flex;
    justify-content: center;
    margin-top: 4px;
}

.g-recaptcha > div {
    margin: 0 auto;
}

.statusmsg {
    margin: 0 0 18px;
    border: 1px solid var(--status-border);
    border-radius: 8px;
    padding: 11px 12px;
    background: var(--status-bg);
    color: var(--status-color);
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.45;
}

@media (max-width: 520px) {
    body.auth-page {
        padding: 14px;
    }

    .auth-card {
        padding: 24px 18px;
    }

    .auth-card h1 {
        font-size: 1.65rem;
    }
}
