:root {
    --bg: #000000;
    --panel: #0f0f0f;
    --muted-gray: rgba(210,210,210,0.9);
    --orange: #ff8a00;
    --orange-dark: #cc6a00;
    --section-panel: rgba(26,26,26,0.98);
    --accent-border: rgba(255,138,0,0.12);
    --input-bg: rgba(8,8,8,0.9);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { min-height: 100%; background: var(--bg); }

body.login-page {
    min-height: 150vh;
    background: linear-gradient(180deg, #000 0%, #070707 20%, #070707 80%, #000 100%);
    color: #eee;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.45;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(180deg, rgba(10,10,10,0.95), rgba(5,5,5,0.9));
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    padding: 0 22px;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.02);
}

.header-logo {
    height: 40px;
    width: auto;
    display: block;
}

.form-wrap {
    max-width: 460px;
    margin: 120px auto 100px;
    padding: 22px;
    position: relative;
    z-index: 2;
}

.login-form {
    background: var(--section-panel);
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 18px 60px rgba(0,0,0,0.7);
    border-left: 6px solid var(--accent-border);
}

.form-title {
    color: var(--orange);
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 24px;
}

.field {
    margin: 20px 0;
}

.field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.field input {
    width: 100%;
    padding: 12px 14px;
    background: var(--input-bg);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    transition: all 180ms ease;
}

.field input:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255,138,0,0.1);
}

.actions {
    margin-top: 30px;
    text-align: center;
}

.btn-submit {
    background: var(--orange);
    color: #000;
    border: none;
    padding: 12px 34px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 200ms ease;
}

.btn-submit:hover {
    background: var(--orange-dark);
    color: #fff;
    transform: translateY(-2px);
}

.btn-submit:active {
    transform: translateY(0);
}

.signup-prompt {
    text-align: center;
    margin-top: 20px;
    color: #aaa;
}

.signup-prompt a {
    color: var(--orange);
    text-decoration: none;
}

.signup-prompt a:hover {
    text-decoration: underline;
}

.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert.success {
    background: rgba(0,255,0,0.1);
    border: 1px solid rgba(0,255,0,0.2);
    color: #90ee90;
}

.alert.error {
    background: rgba(255,0,0,0.1);
    border: 1px solid rgba(255,0,0,0.2);
    color: #ff6b6b;
}

.error-message {
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 6px;
}

.site-footer {
    background: rgba(0,0,0,0.95);
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.footer-content {
    max-width: 460px;
    margin: 0 auto;
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.footer-content a {
    color: #888;
    text-decoration: none;
}

@media (max-width: 480px) {
    .form-wrap { margin: 100px 16px 60px; padding: 0; }
    .login-form { padding: 24px; }
    .form-title { font-size: 24px; }
    .site-header { height: 64px; }
    .header-logo { height: 32px; }
}

/* ============ AUTOFILL STYLES ============ */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--input-bg) inset !important;
    box-shadow: 0 0 0 30px var(--input-bg) inset !important;
}

input:-webkit-autofill {
    -webkit-text-fill-color: #fff !important;
}

input:-webkit-autofill::first-line {
    font-family: inherit;
}

textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px var(--input-bg) inset !important;
    -webkit-text-fill-color: #fff !important;
}

select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px var(--input-bg) inset !important;
    -webkit-text-fill-color: #fff !important;
}