/* Smart Prediction Hub — user auth pages (login / register / account) */
* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: #F8F7FC;
    color: #17142E;
    font-family: "Poppins", sans-serif
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Space Grotesk", sans-serif
}

a {
    text-decoration: none
}

button,
input {
    font-family: "Poppins", sans-serif
}

::selection {
    background: #4F46E5;
    color: #fff
}

.simple-header {
    height: 62px;
    display: flex;
    align-items: center;
    background: #0B0920;
    border-bottom: 1px solid #211C3E;
}

.simple-header-inner {
    width: 100%;
    max-width: 1080px;
    margin: auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.simple-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
}

.simple-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    color: #fff;
    font-size: 16px;
}

.simple-logo-text strong {
    display: block;
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 16px;
    line-height: 1;
    letter-spacing: -.02em;
}

.simple-logo-text span {
    display: block;
    margin-top: 3px;
    color: #9E98BC;
    font-size: 16px;
    line-height: 1;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.header-auth-btn {
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: rgba(255, 255, 255, .055);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    transition: .2s;
}

.header-auth-btn:hover {
    border-color: #6D5DFB;
    background: #5B4BFF;
}

.auth-section {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 114px);
    padding: 46px 20px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 12% 18%, rgba(79, 70, 229, .10), transparent 26%),
        radial-gradient(circle at 86% 78%, rgba(124, 58, 237, .11), transparent 30%),
        #F8F7FC;
}

.auth-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(79, 70, 229, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 70, 229, .03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.auth-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1020px;
    margin: auto;
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(400px, 1.12fr);
    gap: 24px;
    align-items: stretch;
}

.auth-panel {
    position: relative;
    overflow: hidden;
    padding: 34px;
    border-radius: 20px;
    color: #fff;
    background:
        radial-gradient(circle at 82% 15%, rgba(168, 85, 247, .35), transparent 26%),
        linear-gradient(145deg, #0B0920, #17132F 58%, #211447);
    box-shadow: 0 22px 55px rgba(24, 16, 56, .15);
}

.auth-panel::after {
    content: "";
    position: absolute;
    width: 230px;
    height: 230px;
    right: -105px;
    bottom: -110px;
    border-radius: 50%;
    border: 1px solid rgba(196, 181, 253, .15);
    box-shadow: 0 0 0 38px rgba(139, 92, 246, .035), 0 0 0 76px rgba(139, 92, 246, .02);
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .05);
    color: #C9B7FF;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .10em;
}

.auth-kicker i {
    color: #F59E0B
}

.auth-panel h1 {
    max-width: 470px;
    margin: 18px 0 12px;
    color: #fff;
    font-size: clamp(32px, 3.5vw, 46px);
    line-height: 1.03;
    letter-spacing: -.05em;
}

.auth-panel>p {
    max-width: 470px;
    margin: 0;
    color: #C9C3D8;
    font-size: 16px;
    line-height: 1.8;
}

.auth-benefits {
    display: grid;
    gap: 11px;
    margin-top: 24px;
}

.auth-benefit {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #D9D4E7;
    font-size: 16px;
    line-height: 1.6;
}

.auth-benefit i {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: rgba(16, 185, 129, .12);
    color: #6EE7B7;
    font-size: 16px;
}

.auth-mini-card {
    margin-top: 24px;
    max-width: 350px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 13px;
    background: rgba(255, 255, 255, .055);
}

.auth-mini-card small {
    display: block;
    color: #9F98BA;
    font-size: 16px;
    letter-spacing: .12em;
}

.auth-mini-card strong {
    display: block;
    margin-top: 5px;
    color: #fff;
    font-size: 16px;
}

.auth-form-card {
    padding: 28px;
    border: 1px solid #E4DEEF;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 15px 40px rgba(30, 23, 67, .07);
}

.auth-form-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 21px;
}

.auth-form-head h2 {
    margin: 0 0 5px;
    color: #17142E;
    font-size: 24px;
    letter-spacing: -.035em;
}

.auth-form-head p {
    margin: 0;
    color: #80798E;
    font-size: 16px;
    line-height: 1.7;
}

.auth-switch {
    flex-shrink: 0;
    color: #5547F5;
    font-size: 16px;
    font-weight: 700;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.form-group {
    margin-bottom: 14px
}

.form-group label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    color: #2A263E;
    font-size: 16px;
    font-weight: 600;
}

.form-group label a {
    color: #5547F5
}

.input-wrap {
    position: relative
}

.input-wrap>i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9D96AD;
    font-size: 16px;
}

.input-wrap input {
    width: 100%;
    height: 42px;
    padding: 0 38px 0 36px;
    border: 1px solid #DED8EB;
    border-radius: 9px;
    outline: none;
    background: #FBFAFE;
    color: #17142E;
    font-size: 16px;
    transition: .22s;
}

.input-wrap input:focus {
    border-color: #6D5DFB;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(109, 93, 251, .09);
}

.input-wrap input::placeholder {
    color: #ADA6BA
}

.password-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    color: #928AA4;
    cursor: pointer;
}

.remember-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 16px;
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    color: #756E84;
    font-size: 16px;
    line-height: 1.55;
}

.check-row input {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    margin-top: 1px;
    accent-color: #5547F5;
}

.auth-submit {
    width: 100%;
    min-height: 42px;
    border: 0;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: linear-gradient(135deg, #5547F5, #7C3AED);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 9px 22px rgba(85, 71, 245, .18);
    transition: .22s;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(85, 71, 245, .25);
}

.auth-divider {
    position: relative;
    margin: 18px 0;
    text-align: center;
}

.auth-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #EEEAF5;
}

.auth-divider span {
    position: relative;
    padding: 0 8px;
    background: #fff;
    color: #A19AAA;
    font-size: 16px;
    letter-spacing: .08em;
}

.social-auth {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.social-auth a {
    min-height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #E2DDEC;
    border-radius: 9px;
    background: #fff;
    color: #3A3448;
    font-size: 16px;
    font-weight: 600;
    transition: .2s;
}

.social-auth a:hover {
    background: #FAF9FD;
    border-color: #D2C9E9
}

.form-note {
    margin-top: 14px;
    color: #958EA1;
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
}

.form-note a {
    color: #5547F5
}

.auth-message {
    display: none;
    margin-bottom: 13px;
    padding: 9px 11px;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.6;
}

.auth-message.error {
    display: block;
    background: #FFF1F2;
    color: #BE123C;
    border: 1px solid #FFE0E5
}

.auth-message.success {
    display: block;
    background: #ECFDF5;
    color: #047857;
    border: 1px solid #D1FAE5
}

.simple-footer {
    min-height: 52px;
    display: flex;
    align-items: center;
    background: #120E1F;
    border-top: 1px solid #2B2340;
    color: #9188A8;
}

.simple-footer-inner {
    width: 100%;
    max-width: 1080px;
    margin: auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    font-size: 16px;
}

.simple-footer-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.simple-footer a {
    color: #BEB5D1
}

.simple-footer a:hover {
    color: #fff
}

@media(max-width:900px) {
    .auth-wrap {
        grid-template-columns: 1fr
    }

    .auth-panel {
        padding: 30px
    }
}

@media(max-width:650px) {

    .simple-header-inner,
    .simple-footer-inner {
        padding-left: 15px;
        padding-right: 15px
    }

    .auth-section {
        padding: 32px 15px
    }

    .auth-form-card {
        padding: 22px 17px
    }

    .auth-form-head {
        flex-direction: column
    }

    .form-grid {
        grid-template-columns: 1fr
    }

    .simple-footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px
    }
}

@media(max-width:480px) {
    .auth-panel {
        padding: 24px 19px
    }

    .auth-panel h1 {
        font-size: 33px
    }

    .social-auth {
        grid-template-columns: 1fr
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important
    }
}

/* ---------- Additions for the PHP backend ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.auth-submit:disabled { opacity: .7; cursor: wait; transform: none; }
.header-auth-form { margin: 0; }
.header-auth-form button { cursor: pointer; font-family: "Poppins", sans-serif; }
.form-group label a:hover, .form-note a:hover, .auth-switch:hover { text-decoration: underline; }

/* Admin "Login as" banner */
.imp-bar { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; padding: 9px 16px; background: #F59E0B; color: #1F1300; font-size: 16px; }
.imp-bar form { margin: 0; }
.imp-bar button { font: inherit; font-weight: 700; background: #1F1300; color: #fff; border: 0; border-radius: 7px; padding: 6px 12px; cursor: pointer; }

/* Account page */
.acc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 24px; max-width: 470px; }
.acc-stat { padding: 12px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 12px; background: rgba(255, 255, 255, .055); }
.acc-stat small { display: block; color: #9F98BA; font-size: 16px; letter-spacing: .12em; text-transform: uppercase; }
.acc-stat strong { display: block; margin-top: 5px; color: #fff; font-size: 16px; }
.acc-avatar { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, #5547F5, #7C3AED); color: #fff; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 16px; }
.acc-list { border: 1px solid #EEEAF5; border-radius: 12px; overflow: hidden; }
.acc-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 13px; border-bottom: 1px solid #EEEAF5; font-size: 16px; color: #2A263E; }
.acc-row:last-child { border-bottom: 0; }
.acc-row span:first-child { color: #80798E; }
.acc-row strong { font-weight: 600; text-align: right; word-break: break-word; }
.acc-title { margin: 20px 0 9px; color: #17142E; font-size: 16px; letter-spacing: -.02em; }
.sess-row { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; padding: 10px 13px; border-bottom: 1px solid #EEEAF5; font-size: 16px; }
.sess-row:last-child { border-bottom: 0; }
.sess-row .when { color: #17142E; font-weight: 600; }
.sess-row .meta { color: #80798E; grid-column: 1 / 2; }
.pill { align-self: center; grid-row: 1 / 3; grid-column: 2; padding: 3px 8px; border-radius: 999px; font-size: 16px; font-weight: 700; }
.pill-on { background: #ECFDF5; color: #047857; }
.pill-off { background: #F3F1F8; color: #756E84; }
@media(max-width:480px) { .acc-stats { grid-template-columns: 1fr; } }

/* =========================================================
   TYPOGRAPHY FIX — MINIMUM 16PX
   Shared by login.php, register.php and account.php
========================================================= */
html{font-size: 16px}
body,button,input,select,textarea{font-size: 16px}
.simple-header{height:76px}
.simple-header-inner{max-width:1180px;padding:0 24px}
.simple-logo{gap:11px}
.simple-logo-icon{width:42px;height:42px;font-size: 18px}
.simple-logo-text strong{font-size: 18px;line-height:1.05}
.simple-logo-text span{margin-top:4px;font-size: 16px;line-height:1.15;letter-spacing:.03em;text-transform:none}
.header-auth-btn{min-height:44px;padding:0 18px;font-size: 16px}
.auth-section{min-height:calc(100vh - 140px);padding:54px 24px}
.auth-wrap{max-width:1180px;grid-template-columns:minmax(0,.92fr) minmax(460px,1.08fr);gap:30px}
.auth-panel{padding:42px}
.auth-kicker{padding:8px 12px;font-size: 16px;line-height:1.35}
.auth-kicker i{font-size: 16px}
.auth-panel h1{max-width:560px;margin:22px 0 16px;font-size:clamp(42px,4vw,58px);line-height:1.06}
.auth-panel>p{max-width:560px;font-size: 16px;line-height:1.8}
.auth-benefits{gap:15px;margin-top:30px}
.auth-benefit{gap:12px;font-size: 16px;line-height:1.65}
.auth-benefit i{width:30px;height:30px;flex:0 0 30px;font-size: 16px}
.auth-mini-card{max-width:440px;margin-top:30px;padding:18px}
.auth-mini-card small,.auth-mini-card strong{font-size: 16px}
.auth-mini-card strong{margin-top:7px;line-height:1.5}
.auth-form-card{padding:38px}
.auth-form-head{gap:20px;margin-bottom:28px}
.auth-form-head h2{margin-bottom:7px;font-size: 32px}
.auth-form-head p,.auth-switch{font-size: 16px}
.auth-form-head p{line-height:1.65}
.form-grid{gap:16px}
.form-group{margin-bottom:18px}
.form-group label{margin-bottom:9px;font-size: 16px;line-height:1.4}
.input-wrap>i{left:15px;font-size: 16px}
.input-wrap input{height:54px;padding:0 46px 0 44px;font-size: 16px}
.password-toggle{right:8px;width:38px;height:38px;font-size: 16px}
.check-row{gap:10px;font-size: 16px;line-height:1.55}
.check-row input{width:18px;height:18px;flex:0 0 18px;margin-top:3px}
.auth-submit{min-height:52px;font-size: 16px}
.auth-divider{margin:24px 0}
.auth-divider span{padding:0 12px;font-size: 16px}
.social-auth{gap:12px}
.social-auth a{min-height:50px;font-size: 16px}
.form-note,.auth-message{font-size: 16px;line-height:1.6}
.auth-message{padding:13px 15px}
.simple-footer{min-height:66px}
.simple-footer-inner{max-width:1180px;padding:16px 24px;font-size: 16px}
.simple-footer-links{gap:18px}
.imp-bar{gap:14px;padding:12px 18px;font-size: 16px}
.imp-bar button{padding:8px 14px;font-size: 16px}
.acc-stats{gap:14px;max-width:560px}
.acc-stat{padding:16px}
.acc-stat small,.acc-stat strong,.acc-row,.sess-row,.pill{font-size: 16px}
.acc-avatar{width:54px;height:54px;font-size: 18px}
.acc-row,.sess-row{padding:14px 16px}
.acc-title{font-size: 22px}
.pill{padding:6px 10px}
@media(max-width:900px){.auth-wrap{grid-template-columns:1fr;max-width:760px}.auth-panel{padding:34px}}
@media(max-width:650px){.simple-header{height:72px}.simple-header-inner,.simple-footer-inner{padding-left:16px;padding-right:16px}.simple-logo-text span{display:none}.auth-section{padding:36px 16px}.auth-panel,.auth-form-card{padding:26px 20px}.auth-panel h1{font-size: 38px}.auth-form-head{flex-direction:column;gap:10px}.auth-form-head h2{font-size: 28px}.form-grid{grid-template-columns:1fr}.social-auth{grid-template-columns:1fr}.simple-footer-inner{align-items:flex-start;flex-direction:column;gap:10px}}
@media(max-width:480px){.header-auth-btn{padding:0 14px}.auth-panel h1{font-size: 34px}.acc-stats{grid-template-columns:1fr}}



/* FINAL MINIMUM TYPOGRAPHY SAFETY NET */
body,
p,
a,
span,
small,
label,
button,
input,
select,
textarea,
li,
td,
th,
strong,
.auth-kicker,
.auth-panel > p,
.auth-benefit,
.auth-mini-card small,
.auth-mini-card strong,
.auth-form-head p,
.auth-switch,
.form-group label,
.check-row,
.auth-submit,
.auth-divider span,
.social-auth a,
.form-note,
.auth-message,
.simple-logo-text strong,
.simple-logo-text span,
.header-auth-btn,
.simple-footer,
.simple-footer-inner,
.imp-bar,
.acc-stat small,
.acc-stat strong,
.acc-row,
.sess-row,
.pill {
    font-size: 16px !important;
}

/* Headings remain larger than body text */
.auth-panel h1 {
    font-size: clamp(42px, 4vw, 58px) !important;
}

.auth-form-head h2 {
    font-size: 32px !important;
}

.acc-title {
    font-size: 22px !important;
}
