/* ==========================================================================
   SpeedLand Admin – Professional Login Screens
   Shared styles for: index.php, marketing-login, manager-login,
   staff-login, accounts-login, data-center
   ========================================================================== */

:root {
    --auth-navy-900: #0b1d3a;
    --auth-navy-800: #0f2c59;
    --auth-blue-700: #1450a3;
    --auth-blue-600: #1a63c4;
    --auth-blue-500: #2f7de1;
    --auth-accent: #ffb400;
    --auth-accent-dark: #e29e00;
    --auth-text-dark: #1c2a3a;
    --auth-text-muted: #6b7a90;
    --auth-border: #e3e8f0;
    --auth-danger: #e5484d;
    --auth-radius: 18px;
}

html, body.auth-body {
    height: 100%;
}

body.auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Poppins', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--auth-text-dark);
    background:
        radial-gradient(circle at 15% 20%, rgba(47, 125, 225, 0.35), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(255, 180, 0, 0.18), transparent 40%),
        linear-gradient(135deg, var(--auth-navy-900) 0%, var(--auth-navy-800) 45%, var(--auth-blue-700) 100%);
    display: flex;
    align-items: center;
    align-items: safe center;
    justify-content: center;
    padding: 32px 16px;
    box-sizing: border-box;
}

.auth-wrapper {
    width: 100%;
    max-width: 980px;
}

.auth-card {
    display: flex;
    width: 100%;
    min-height: 560px;
    background: #ffffff;
    border-radius: var(--auth-radius);
    overflow: hidden;
    box-shadow: 0 30px 60px -15px rgba(4, 15, 40, 0.55), 0 10px 25px -10px rgba(4, 15, 40, 0.35);
}

/* ---------------- Brand / left panel ---------------- */

.auth-brand {
    position: relative;
    flex: 0 0 40%;
    padding: 48px 40px;
    background:
        radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.10), transparent 40%),
        linear-gradient(160deg, var(--auth-navy-900) 0%, var(--auth-blue-700) 100%);
    color: #eaf1fb;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.auth-brand::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    top: -120px;
    right: -120px;
}

.auth-brand::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 180, 0, 0.12);
    bottom: -90px;
    left: -70px;
}

.auth-logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.auth-logo-wrap img {
    max-width: 130px;
    height: auto;
    background: #fff;
    border-radius: 10px;
    padding: 6px 8px;
}

.auth-brand h1 {
    position: relative;
    z-index: 1;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 14px;
}

.auth-brand p.auth-tagline {
    position: relative;
    z-index: 1;
    font-size: 14px;
    color: #c3d4ef;
    margin: 0 0 32px;
    max-width: 320px;
}

.auth-points {
    position: relative;
    z-index: 1;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-points li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: #dbe6f7;
}

.auth-points li i {
    color: var(--auth-accent);
    margin-top: 2px;
}

/* ---------------- Form / right panel ---------------- */

.auth-form-panel {
    flex: 1 1 60%;
    padding: 44px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

.auth-role-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.auth-role-tab {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: var(--auth-text-muted);
    background: #f2f5fa;
    border: 1px solid var(--auth-border);
    border-radius: 999px;
    padding: 7px 14px;
    text-decoration: none;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.auth-role-tab:hover {
    color: var(--auth-blue-700);
    border-color: var(--auth-blue-500);
    text-decoration: none;
}

.auth-role-tab.active {
    background: linear-gradient(135deg, var(--auth-blue-600), var(--auth-blue-700));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 14px -4px rgba(20, 80, 163, 0.55);
}

.auth-form-head h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--auth-text-dark);
    margin: 0 0 6px;
}

.auth-form-head p {
    font-size: 13.5px;
    color: var(--auth-text-muted);
    margin: 0 0 26px;
}

.auth-error {
    display: block;
    background: #fdecec;
    color: var(--auth-danger);
    border: 1px solid #f6c6c8;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 18px;
}

.auth-error:empty {
    display: none;
}

.auth-field {
    margin-bottom: 18px;
}

.auth-field label.auth-field-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--auth-text-dark);
    margin-bottom: 7px;
}

.auth-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    color: var(--auth-text-muted);
    font-size: 15px;
    pointer-events: none;
}

.auth-input-group input.auth-input,
.auth-input-group select.auth-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1.5px solid var(--auth-border);
    border-radius: 12px;
    font-size: 14px;
    color: var(--auth-text-dark);
    background: #f9fafc;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    box-sizing: border-box;
}

.auth-input-group select.auth-input {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 36px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%236b7a90' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.auth-input-group input.auth-input:focus,
.auth-input-group select.auth-input:focus {
    outline: none;
    border-color: var(--auth-blue-500);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(47, 125, 225, 0.12);
}

.auth-toggle-pass {
    position: absolute;
    right: 6px;
    border: none;
    background: transparent;
    color: var(--auth-text-muted);
    cursor: pointer;
    padding: 8px 10px;
    font-size: 15px;
    line-height: 1;
}

.auth-toggle-pass:hover {
    color: var(--auth-blue-700);
}

.auth-row-between {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: -6px 0 22px;
}

.auth-link {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--auth-blue-600);
    text-decoration: none;
}

.auth-link:hover {
    color: var(--auth-accent-dark);
    text-decoration: underline;
}

.auth-submit-btn {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 13px 18px;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #fff;
    background: linear-gradient(135deg, var(--auth-blue-600), var(--auth-navy-800));
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 12px 22px -8px rgba(15, 44, 89, 0.55);
}

.auth-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 26px -8px rgba(15, 44, 89, 0.6);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 26px;
    font-size: 13px;
}

.auth-footer a {
    color: var(--auth-text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.auth-footer a:hover {
    color: var(--auth-blue-700);
    text-decoration: underline;
}

.auth-note {
    font-size: 12.5px;
    color: var(--auth-danger);
    margin: -8px 0 18px;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 860px) {
    .auth-card {
        flex-direction: column;
        min-height: 0;
    }

    .auth-brand {
        flex: none;
        padding: 34px 30px;
    }

    .auth-brand::before,
    .auth-brand::after {
        display: none;
    }

    .auth-points {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
    }

    .auth-form-panel {
        padding: 32px 26px 38px;
    }
}

@media (max-width: 480px) {
    .auth-form-panel {
        padding: 28px 20px 32px;
    }

    .auth-role-tab {
        font-size: 11px;
        padding: 6px 10px;
    }
}
