/*
|--------------------------------------------------------------------------
| Auth / Register Theme Pack 2026
|--------------------------------------------------------------------------
| Safe modern replacement for old reg.css.
| Works with your existing login/register PHP structure.
|
| Supported body classes:
|   auth-theme-deep-purple
|   auth-theme-midnight
|   auth-theme-graphite
|   auth-theme-rose
|   auth-theme-ocean
|--------------------------------------------------------------------------
*/

@font-face {
    font-family: "Exo";
    src: url('../fonts/Exo.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root,
body.auth-theme-deep-purple {
    --auth-primary: #a855f7;
    --auth-primary-dark: #6b21a8;
    --auth-secondary: #ec4899;
    --auth-accent: #facc15;

    --auth-bg: #160827;
    --auth-panel: #261044;
    --auth-panel-soft: #351563;
    --auth-card: rgba(46, 16, 101, 0.92);
    --auth-card-border: rgba(216, 180, 254, 0.20);

    --auth-text: #ffffff;
    --auth-muted: #ddd6fe;
    --auth-soft: #c4b5fd;
    --auth-input-bg: #ffffff;
    --auth-input-text: #1f1235;
    --auth-input-placeholder: #64748b;

    --auth-wave: #e43a6a;
    --auth-icon-bg: linear-gradient(135deg, #7c3aed, #ec4899);
    --auth-shadow: 0 24px 80px rgba(0, 0, 0, 0.40);
}

body.auth-theme-midnight {
    --auth-primary: #38bdf8;
    --auth-primary-dark: #0369a1;
    --auth-secondary: #2563eb;
    --auth-accent: #22d3ee;

    --auth-bg: #020617;
    --auth-panel: #07142b;
    --auth-panel-soft: #0f2547;
    --auth-card: rgba(15, 23, 42, 0.94);
    --auth-card-border: rgba(56, 189, 248, 0.22);

    --auth-text: #f8fafc;
    --auth-muted: #cbd5e1;
    --auth-soft: #93c5fd;
    --auth-input-bg: #ffffff;
    --auth-input-text: #0f172a;
    --auth-input-placeholder: #64748b;

    --auth-wave: #0ea5e9;
    --auth-icon-bg: linear-gradient(135deg, #0284c7, #2563eb);
    --auth-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

body.auth-theme-graphite {
    --auth-primary: #d1d5db;
    --auth-primary-dark: #6b7280;
    --auth-secondary: #9ca3af;
    --auth-accent: #f3f4f6;

    --auth-bg: #000000;
    --auth-panel: #111111;
    --auth-panel-soft: #202020;
    --auth-card: rgba(24, 24, 27, 0.94);
    --auth-card-border: rgba(255, 255, 255, 0.12);

    --auth-text: #ffffff;
    --auth-muted: #d1d5db;
    --auth-soft: #9ca3af;
    --auth-input-bg: #f9fafb;
    --auth-input-text: #111827;
    --auth-input-placeholder: #6b7280;

    --auth-wave: #374151;
    --auth-icon-bg: linear-gradient(135deg, #4b5563, #111827);
    --auth-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

body.auth-theme-rose {
    --auth-primary: #fb7185;
    --auth-primary-dark: #be123c;
    --auth-secondary: #f472b6;
    --auth-accent: #fecdd3;

    --auth-bg: #12080c;
    --auth-panel: #1f1116;
    --auth-panel-soft: #3a1b25;
    --auth-card: rgba(42, 21, 28, 0.94);
    --auth-card-border: rgba(251, 113, 133, 0.22);

    --auth-text: #fff1f2;
    --auth-muted: #ffe4e6;
    --auth-soft: #fda4af;
    --auth-input-bg: #ffffff;
    --auth-input-text: #2a1115;
    --auth-input-placeholder: #78716c;

    --auth-wave: #fb7185;
    --auth-icon-bg: linear-gradient(135deg, #be123c, #fb7185);
    --auth-shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
}

body.auth-theme-ocean {
    --auth-primary: #14b8a6;
    --auth-primary-dark: #0f766e;
    --auth-secondary: #06b6d4;
    --auth-accent: #5eead4;

    --auth-bg: #031316;
    --auth-panel: #0b2027;
    --auth-panel-soft: #123039;
    --auth-card: rgba(18, 48, 57, 0.94);
    --auth-card-border: rgba(20, 184, 166, 0.22);

    --auth-text: #f0fdfa;
    --auth-muted: #ccfbf1;
    --auth-soft: #5eead4;
    --auth-input-bg: #ffffff;
    --auth-input-text: #042f2e;
    --auth-input-placeholder: #64748b;

    --auth-wave: #14b8a6;
    --auth-icon-bg: linear-gradient(135deg, #0f766e, #06b6d4);
    --auth-shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
}

* {
    box-sizing: border-box;
    font-family: "Exo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    outline: none;
    scrollbar-width: thin;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    color: var(--auth-text);
    background:
        radial-gradient(circle at 12% 10%, rgba(168, 85, 247, 0.26), transparent 28%),
        radial-gradient(circle at 88% 18%, rgba(236, 72, 153, 0.18), transparent 28%),
        linear-gradient(135deg, var(--auth-bg), var(--auth-panel));
}

body {
    min-height: 100vh;
    font-size: 14px;
}

body::before,
body::after {
    content: "";
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(12px);
    opacity: 0.45;
    z-index: 0;
}

body::before {
    left: -160px;
    top: -170px;
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-secondary));
}

body::after {
    right: -180px;
    bottom: -190px;
    background: linear-gradient(135deg, var(--auth-secondary), var(--auth-primary-dark));
}

button,
input,
select,
textarea {
    font-family: inherit !important;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--auth-primary);
    border-radius: 999px;
}

/* Main wrappers */
.login-div,
.reg-div {
    width: 100%;
    min-height: 100vh;
    margin: auto;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.03), rgba(255,255,255,0.00)),
        var(--auth-panel);
    z-index: 1;
}

.reg-div {
    overflow-y: auto;
}

.wave-container,
.wave-container-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 1;
}

.wave-container {
    top: 0;
}

.wave-container-bottom {
    bottom: 0;
}

.wave-container path,
.wave-container-bottom path {
    fill: var(--auth-wave) !important;
    opacity: 0.95;
}

.login-div .card,
.reg-div .card {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    height: auto !important;
    background: transparent !important;
    color: var(--auth-text) !important;
    border: 0 !important;
    box-shadow: none !important;
}

.login-div .card-body {
    width: calc(100% - 34px);
    max-width: 440px;
    margin: 92px auto 0;
    padding: 34px 24px 22px !important;
    border: 1px solid var(--auth-card-border) !important;
    border-radius: 28px !important;
    background: var(--auth-card) !important;
    box-shadow: var(--auth-shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.login-div .card-footer {
    width: calc(100% - 34px);
    max-width: 440px;
    margin: 12px auto 0;
    padding: 14px 16px 18px !important;
    border: 1px solid var(--auth-card-border) !important;
    border-radius: 22px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.reg-div .card-body {
    width: calc(100% - 28px);
    max-width: 760px;
    margin: 22px auto;
    padding: 22px !important;
    border: 1px solid var(--auth-card-border) !important;
    border-radius: 28px !important;
    background: var(--auth-card) !important;
    box-shadow: var(--auth-shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.logo-home,
.reglogo {
    width: 188px;
    height: auto;
    display: block;
    margin: 0 auto 8px !important;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.22));
}

.login-div h5,
.reg-div h6,
.seven h1 {
    color: var(--auth-text) !important;
    text-shadow: 0 8px 20px rgba(0,0,0,.25);
}

.login-div h5 {
    margin: 8px 0 10px;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: .2px;
}

.reg-div h6 {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.45;
}

.ribbon {
    width: 100%;
    max-width: 360px;
    margin: 4px auto 26px;
    display: block;
    filter: drop-shadow(0 15px 24px rgba(0, 0, 0, 0.22));
}

.form-group {
    color: var(--auth-muted);
    font-size: 14px;
    font-weight: 650;
    margin-bottom: 16px !important;
}

.input-group {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 28px rgba(0,0,0,.18);
}

.input-group-text {
    width: 54px !important;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--auth-icon-bg) !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 0 !important;
    font-size: 16px !important;
}

.form-control,
.form-control-lg,
input,
select,
textarea {
    min-height: 52px;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--auth-input-bg) !important;
    color: var(--auth-input-text) !important;
    font-size: 16px !important;
    font-weight: 650;
    box-shadow: none !important;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: var(--auth-input-placeholder) !important;
    font-weight: 500;
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
    background: #ffffff !important;
    box-shadow: inset 0 0 0 2px var(--auth-primary) !important;
}

.input-group-append .input-group-text,
.input-group-prepend .input-group-text {
    cursor: pointer;
}

.btn {
    border-radius: 999px !important;
    font-weight: 800 !important;
    letter-spacing: .2px;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary,
.btn-info {
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-primary-dark)) !important;
    border: 0 !important;
    color: #ffffff !important;
    box-shadow: 0 16px 30px rgba(0,0,0,.24);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #b91c1c) !important;
    border: 0 !important;
    color: #ffffff !important;
}

.btn-success {
    background: linear-gradient(135deg, #22c55e, #15803d) !important;
    border: 0 !important;
    color: #ffffff !important;
}

#loginNow,
#loader,
#btnFP {
    width: 100%;
    min-height: 52px;
    margin-top: 2px;
}

.icons {
    width: 26px;
    display: block;
    margin: 0 auto 5px;
    filter: drop-shadow(0 8px 14px rgba(0,0,0,.20));
}

.card-footer .btn,
.card-footer a.btn {
    color: var(--auth-muted) !important;
    font-size: 13px;
    white-space: normal;
}

.card-footer .btn:hover,
.card-footer a.btn:hover {
    color: var(--auth-text) !important;
    text-decoration: none;
}

/* Register page section header */
.btn-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 22px 8px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-secondary));
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    margin: 12px 0 16px;
    box-shadow: 0 14px 28px rgba(0,0,0,.20);
}

.seven h1 {
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .4px;
    display: grid;
    grid-template-columns: 1fr max-content 1fr;
    grid-template-rows: 28px 0;
    grid-gap: 16px;
    align-items: center;
    margin: 18px 0 24px;
}

.seven h1:after,
.seven h1:before {
    content: "";
    display: block;
    height: 2px;
    border: 0;
    background: linear-gradient(90deg, transparent, var(--auth-primary), transparent);
}

hr,
hr.reg-hr {
    border: 0 !important;
    border-top: 1px solid var(--auth-card-border) !important;
}

/* Sliding forgot panel */
.sliding-panel,
.sliding-panel-toggle {
    background: var(--auth-card) !important;
    color: var(--auth-text) !important;
    border-left: 1px solid var(--auth-card-border) !important;
    border-radius: 24px 0 0 24px !important;
    box-shadow: var(--auth-shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    width: 100%;
    bottom: 0;
    position: fixed;
    right: 0;
    top: 0;
    transition: all .30s ease-out;
    z-index: 1500;
}

.sliding-panel {
    margin-right: -100%;
}

.sliding-panel-toggle {
    margin-right: 0;
}

.sliding-panel .card-header,
.sliding-panel-toggle .card-header,
.sliding-panel .card-body,
.sliding-panel-toggle .card-body {
    background: transparent !important;
    color: var(--auth-text) !important;
    border: 0 !important;
}

.hrshort,
.hrlong {
    border-bottom-color: var(--auth-primary) !important;
}

.hidden {
    display: none !important;
}

.spinner {
    background: rgba(0,0,0,.38) !important;
    opacity: 1 !important;
    z-index: 2000;
    width: 100%;
    height: 100%;
    position: fixed;
    inset: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    margin: -40px 0 0 -40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.scrolldiv {
    overflow-y: auto !important;
    scrollbar-width: thin !important;
}

input[type="radio"] {
    transform: scale(1.25);
}

input[type=number] {
    appearance: textfield;
    -moz-appearance: textfield;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.row.no-gutters-o,
.row.no-gutters-om {
    margin-left: 0;
    margin-right: 0;
}

.row.no-gutters-o [class*='col-'] {
    padding: 5px;
}

.row.no-gutters-om [class*='col-'] {
    padding: 8px;
}

/* legacy helpers */
.pe-lg {
    font-size: 20px;
    font-weight: 500;
}

.login-svg {
    margin-left: auto;
    margin-right: auto;
    width: 140px;
}

.user-icon {
    font-size: 60px;
    display: block;
}

/* Desktop layout */
@media (min-width: 1220px) {
    .login-div {
        width: 480px;
        min-height: 100vh;
        margin-left: calc(50% - 240px);
        border-left: 1px solid var(--auth-card-border);
        border-right: 1px solid var(--auth-card-border);
        box-shadow: var(--auth-shadow);
    }

    .reg-div {
        width: 780px;
        min-height: 100vh;
        margin-left: calc(50% - 390px);
        border-left: 1px solid var(--auth-card-border);
        border-right: 1px solid var(--auth-card-border);
        box-shadow: var(--auth-shadow);
    }

    .sliding-panel,
    .sliding-panel-toggle {
        width: 440px;
    }

    .sliding-panel {
        margin-right: -460px;
    }
}

@media (max-width: 575.98px) {
    .login-div .card-body {
        margin-top: 86px;
        padding: 28px 18px 20px !important;
        border-radius: 24px !important;
    }

    .login-div h5 {
        font-size: 21px;
    }

    .ribbon {
        margin-bottom: 20px;
    }

    .reg-div .card-body {
        width: calc(100% - 20px);
        margin: 12px auto;
        padding: 16px !important;
        border-radius: 22px !important;
    }

    .seven h1 {
        font-size: 18px;
        grid-gap: 10px;
    }
}
