/*
 * Modern Login Reskin
 * Overrides the usertemplate login styles (admin/login.php, userlogin.php)
 * with the same indigo/SaaS palette used in modern_theme.css.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --ss-primary: #4F46E5;
    --ss-primary-dark: #4338CA;
    --ss-primary-light: #EEF2FF;
    --ss-bg: #F8FAFC;
    --ss-text: #0F172A;
    --ss-text-muted: #64748B;
    --ss-border: #E2E8F0;
    --ss-radius: 16px;
    --ss-shadow-md: 0 4px 6px rgba(15, 23, 42, 0.04), 0 10px 30px rgba(15, 23, 42, 0.08);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--ss-bg);
    color: var(--ss-text);
    -webkit-font-smoothing: antialiased;
}

a, a:hover, a:focus {
    color: var(--ss-primary);
}

::selection {
    background: var(--ss-primary);
    color: #fff;
}

h1, h2, h3, h4 {
    font-family: 'Inter', sans-serif;
    color: var(--ss-text);
    letter-spacing: -0.01em;
}

/* Card wrapper */
.loginbg {
    background: #fff;
    border-radius: var(--ss-radius);
    box-shadow: var(--ss-shadow-md);
    overflow: hidden;
}

.form-top,
.form-bottom {
    background: #fff !important;
}

.form-top-left img {
    max-height: 60px;
}

.font-white {
    font-family: 'Inter', sans-serif;
    color: var(--ss-text) !important;
    font-weight: 700 !important;
    font-size: 20px !important;
    letter-spacing: -0.01em;
}

/* Inputs */
input[type="text"],
input[type="password"],
textarea,
textarea.form-control,
.form-control {
    height: 48px;
    border: 1px solid var(--ss-border) !important;
    background: #fff;
    border-radius: 8px;
    box-shadow: none;
    font-family: 'Inter', sans-serif;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus,
textarea.form-control:focus,
.form-control:focus {
    border: 1px solid var(--ss-primary) !important;
    box-shadow: 0 0 0 3px var(--ss-primary-light);
}

/* Buttons */
button.btn,
.form-bottom form button.btn {
    height: 48px;
    line-height: 48px;
    background: var(--ss-primary) !important;
    color: #fff !important;
    border: none;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    box-shadow: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: background-color 0.15s ease;
}

button.btn:hover {
    background: var(--ss-primary-dark) !important;
    opacity: 1 !important;
}

/* Forgot password link */
a.forgot {
    color: var(--ss-primary) !important;
    font-weight: 500;
}

a.forgot:hover {
    color: var(--ss-primary-dark) !important;
    text-decoration: underline;
}

/* Right-side "what's new" panel */
.loginright {
    border-radius: var(--ss-radius);
}

.bg-shadow-remove,
.d-flex.align-items-center {
    border-radius: var(--ss-radius);
}

/* Captcha refresh icon */
.catpcha {
    color: var(--ss-primary);
    cursor: pointer;
}

/* Alerts */
.alert-danger {
    border-radius: 8px;
    border: none;
    background-color: #FEF2F2;
    color: #B91C1C;
}

.alert-success {
    border-radius: 8px;
    border: none;
    background-color: #ECFDF5;
    color: #047857;
}

/* ============================================================
   Simple centered-card page layout
   ============================================================ */
html, body {
    min-height: 100vh;
}

body {
    background: var(--ss-bg);
}

.top-content,
.inner-bg {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    background: transparent !important;
}

.inner-bg > .container-fluid,
.inner-bg > .container-fluid > .row {
    width: 100%;
}

.bgoffsetbg {
    max-width: 600px;
    width: 100%;
    margin: 24px auto;
}

.bgoffsetbg .col-lg-4.nopadding {
    width: 100%;
    padding: 0 !important;
}

/* Hide the old "what's new" / background-image side panel entirely */
.bgoffsetbg .col-lg-8.nopadding-2 {
    display: none;
}

.bgoffsetbg .loginbg {
    box-shadow: var(--ss-shadow-md);
    border-radius: var(--ss-radius);
    max-width: none;
    margin: 0;
    padding: 8px;
}

.bgoffsetbg .form-top {
    text-align: center;
    padding-top: 32px;
}

.bgoffsetbg .form-top-left {
    padding: 0;
}

.bgoffsetbg .form-top-left img {
    max-height: 56px;
    margin: 0 auto;
}

.bgoffsetbg .form-bottom {
    padding: 32px 36px 36px;
}

@media (max-width: 480px) {
    .bgoffsetbg .form-bottom {
        padding: 28px 22px 32px;
    }
}

/* ============================================================
   RSG-style login (2026-10-05): OpenLoop blue, logo above a
   white rounded card, gradient button
   ============================================================ */
:root {
    --ss-primary: #0256de;
    --ss-primary-dark: #003ea3;
    --ss-primary-light: #dbe9ff;
    --ss-bg: #f9fafb;
    --ss-border: #e5e7eb;
}
.bgoffsetbg { max-width: 480px; padding: 0 16px; box-sizing: content-box; }
.bgoffsetbg .loginbg {
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible;
    padding: 0;
}
.bgoffsetbg .form-top { background: transparent !important; padding: 0 0 24px; }
.bgoffsetbg .form-top-left img { max-height: 64px; max-width: 100%; }
.bgoffsetbg .form-bottom {
    background: #fff !important;
    border: 1px solid #f3f4f6;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
    padding: 32px 36px 28px;
    text-align: left;
}
.bgoffsetbg .form-bottom h3.font-white {
    font-size: 18px !important;
    margin: 0 0 20px;
    text-align: left;
}
.bgoffsetbg .form-control,
.bgoffsetbg input[type="text"],
.bgoffsetbg input[type="password"] {
    height: 46px;
    border-radius: 12px;
    font-size: 14px;
}
.bgoffsetbg .form-control:focus {
    border-color: #3d87ff !important;
    box-shadow: 0 0 0 3px #dbe9ff;
}
.bgoffsetbg button.btn,
.bgoffsetbg .form-bottom form button.btn {
    background: linear-gradient(135deg, #0256de, #001f51) !important;
    border-radius: 12px;
    height: 46px;
    line-height: 46px;
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0;
    padding: 0;
    width: 100%;
    transition: opacity .15s ease;
}
.bgoffsetbg button.btn:hover { opacity: .9 !important; background: linear-gradient(135deg, #0256de, #001f51) !important; }
.bgoffsetbg .form-bottom p { text-align: center; margin: 18px 0 0; }
.bgoffsetbg a.forgot { font-size: 13px; color: #6b7280 !important; }
.bgoffsetbg a.forgot:hover { color: #0256de !important; }
@media (max-width: 480px) { .bgoffsetbg .form-bottom { padding: 26px 20px 22px; } }

/* Parent "choose child/class" page (user/choose.php) */
.top-content > .container { max-width: 480px; width: 100%; padding: 0 16px; }
.top-content > .container > .row { margin: 0; }
.top-content > .container .col-md-offset-3 { width: 100%; margin-left: 0; float: none; padding: 0; }
.loginradius.loginbg {
    background: #fff !important;
    border: 1px solid #f3f4f6;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,.05) !important;
    padding: 32px 36px 28px;
    min-height: 0;
    max-width: none;
}
.loginradius .select-title { font-size: 18px; font-weight: 700; margin: 0 0 16px; }
.loginradius .radio label {
    display: block; width: 100%; padding: 12px 14px 12px 38px;
    border: 1px solid #e5e7eb; border-radius: 12px; font-size: 14px; color: #374151; cursor: pointer;
}
.loginradius .radio label:hover { background: #f9fafb; border-color: #3d87ff; }
.loginradius .radio input[type="radio"] { margin-left: -24px; }
.loginradius .form-bottom { padding: 12px 0 0; background: transparent !important; overflow: hidden; }
.loginradius .btn2 {
    float: none !important; width: 100%; height: 46px; border: none; border-radius: 12px;
    background: linear-gradient(135deg, #0256de, #001f51); color: #fff; font-weight: 600; font-size: 14px;
    transition: opacity .15s ease;
}
.loginradius .btn2:hover { opacity: .9; }

/* forgot / reset password pages */
.bgoffsetbg .form-bottom > a.forgot { display: block; text-align: center; margin-top: 18px; }
.bgoffsetbg .form-bottom .radio-inline {
    margin: 0 16px 0 0; padding: 0 0 0 22px; font-size: 13px; font-weight: 500; color: #374151;
}
.bgoffsetbg .form-bottom .radio-inline input[type="radio"] { margin-left: -20px; }
.bgoffsetbg .form-bottom form .form-group { margin-bottom: 14px; }
.bgoffsetbg .form-bottom .text-danger { font-size: 12px; }
