/*
 * 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;
    }
}
