/* PowerCRM authentication surfaces — deliberately scoped to login flows. */
:root {
    --pc-auth-primary: #2563eb;
    --pc-auth-primary-dark: #1d4ed8;
    --pc-auth-ink: #172033;
    --pc-auth-muted: #71809a;
    --pc-auth-border: #dfe6f0;
    --pc-auth-soft: #f5f8fc;
    --pc-auth-shadow: 0 24px 64px rgba(37, 55, 88, .12);
}

body.login_admin {
    min-height: 100vh;
    margin: 0;
    color: var(--pc-auth-ink);
    background:
        radial-gradient(circle at 10% 10%, rgba(37, 99, 235, .09), transparent 34rem),
        radial-gradient(circle at 92% 88%, rgba(16, 185, 129, .07), transparent 28rem),
        #f7f9fc !important;
    font-family: "Segoe UI", "Metropolis Regular", Arial, sans-serif;
}

.pc-auth-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 32px 18px;
}

.pc-auth-card {
    width: min(100%, 440px);
    padding: 34px;
    border: 1px solid rgba(213, 222, 234, .95);
    border-radius: 18px;
    background: rgba(255, 255, 255, .98);
    box-shadow: var(--pc-auth-shadow);
}

.pc-auth-header { margin-bottom: 27px; text-align: center; }

.pc-auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 156px;
    min-height: 68px;
    margin-bottom: 18px;
    padding: 10px 16px;
    border: 1px solid #edf1f6;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(35, 48, 78, .07);
}

.pc-auth-logo .company-logo { display: block; padding: 0 !important; }
.pc-auth-logo img { display: block; max-width: 180px; max-height: 56px; margin: auto; }

.pc-auth-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: var(--pc-auth-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pc-auth-header h1 {
    margin: 0;
    color: var(--pc-auth-ink);
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -.025em;
    text-transform: none;
}

.pc-auth-header p { margin: 7px 0 0; color: var(--pc-auth-muted); font-size: 12px; }
.pc-auth-form .form-group { margin-bottom: 17px; }

.pc-auth-form label:not(.pc-auth-remember) {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
    color: #3d4a61;
    font-size: 12px;
    font-weight: 600 !important;
}

.pc-auth-form label i { width: 15px; color: #74839a; text-align: center; }

.pc-auth-form .form-control {
    width: 100%;
    height: 45px;
    padding: 10px 13px;
    color: var(--pc-auth-ink);
    border: 1px solid var(--pc-auth-border);
    border-radius: 9px;
    background: #fff;
    box-shadow: none;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.pc-auth-form .form-control:focus {
    border-color: var(--pc-auth-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .11);
    outline: none;
}

.pc-auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 3px 0 20px;
    font-size: 12px;
}

.pc-auth-remember { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: #58677f; font-weight: 400 !important; }
.pc-auth-remember input { margin: 0; accent-color: var(--pc-auth-primary); }
.pc-auth-options a { color: var(--pc-auth-primary); font-weight: 600; }

.pc-auth-submit.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 45px;
    gap: 10px;
    color: #fff !important;
    border: 1px solid var(--pc-auth-primary) !important;
    border-radius: 9px;
    background: var(--pc-auth-primary) !important;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .19);
    font-weight: 700;
}

.pc-auth-submit.btn:hover,
.pc-auth-submit.btn:focus { border-color: var(--pc-auth-primary-dark) !important; background: var(--pc-auth-primary-dark) !important; }

.pc-auth-recaptcha { overflow: hidden; margin-bottom: 15px; }
.pc-auth-card .alert { border: 0; border-radius: 9px; font-size: 12px; }

.pc-auth-card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 24px -34px -34px;
    padding: 15px 20px;
    color: #8290a5;
    border-top: 1px solid #edf1f5;
    background: #fafbfd;
    border-radius: 0 0 18px 18px;
    font-size: 11px;
}

.pc-auth-back { margin-top: 20px; text-align: center; }
.pc-auth-back a { display: inline-flex; align-items: center; gap: 8px; color: var(--pc-auth-primary); font-size: 12px; font-weight: 600; }

.pc-auth-otp {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 9px;
    margin: 4px 0 22px;
}

.pc-auth-form .pc-auth-otp-input.form-control {
    height: 52px;
    padding: 0;
    text-align: center;
    font-size: 21px;
    font-weight: 700;
}

/* Customer login, registration, password reset and verification. */
body.customers_login,
body.customers_login #wrapper,
body.customers_login #content { background: #f7f9fc !important; }

body.customers_login { overflow-x: hidden; overflow-y: auto; color: var(--pc-auth-ink); }

body.customers_login .modern-login-wrapper {
    background:
        radial-gradient(circle at 9% 20%, rgba(37, 99, 235, .08), transparent 31rem),
        radial-gradient(circle at 85% 82%, rgba(16, 185, 129, .06), transparent 27rem),
        #f7f9fc !important;
}

body.customers_login .background-container::before { background: transparent !important; }
body.customers_login #mainstarsbg,
body.customers_login .twinkling,
body.customers_login .clouds { display: none !important; animation: none !important; }

body.customers_login nav.navbar.navbar-default.header .navbar-nav > li > a {
    color: #53627a !important;
    text-decoration: none !important;
}

body.customers_login nav.navbar.navbar-default.header .navbar-nav > li > a:hover,
body.customers_login nav.navbar.navbar-default.header .navbar-nav > li.active > a { color: var(--pc-auth-primary) !important; }

body.customers_login .modern-login-gadgets .gadget-tile {
    color: #40506a;
    border-color: #e1e7f0;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 7px 20px rgba(36, 50, 78, .06);
}

body.customers_login .modern-login-gadgets .gadget-tile:hover {
    color: var(--pc-auth-primary);
    border-color: #cbd9f6;
    background: #fff;
}

body.customers_login .modules-widget-card,
body.customers_login .modules-stats-card {
    border: 1px solid #dfe6f0;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 14px 36px rgba(38, 53, 82, .08);
    backdrop-filter: blur(10px);
}

body.customers_login .modules-panel-title { color: #344258; }
body.customers_login .modules-panel-subtitle { color: #7a879b; }

body.customers_login .module-app {
    border-color: #e5eaf2;
    background: #f8fafd;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

body.customers_login .module-app:hover { border-color: #cbd9f6; background: #fff; transform: translateY(-1px); }
body.customers_login .module-app-icon { position: relative; color: var(--pc-auth-primary); background: #eaf1ff; }
body.customers_login .module-app-icon img { position: absolute; inset: 9px; width: 26px; height: 26px; background: #eaf1ff; }
body.customers_login .module-app-title { color: #3d4b62; }
body.customers_login .modules-stat { border-color: #e5eaf2; background: #f8fafd; }
body.customers_login .modules-stat-label { color: #71809a; }
body.customers_login .modules-stat-value { color: var(--pc-auth-primary); }

body.customers_login .modern-login-card {
    border: 1px solid #dce4ee;
    border-radius: 18px;
    background: rgba(255, 255, 255, .98);
    box-shadow: var(--pc-auth-shadow);
    backdrop-filter: none;
}

body.customers_login .login-form-side { padding: 30px 34px; }
body.register.customers_login .login-form-side { padding: 25px 30px; }
body.customers_login .logo-container { box-shadow: none !important; }
body.customers_login .logo-container .company-logo { padding: 0 !important; }
body.customers_login .login-title { color: var(--pc-auth-ink); font-size: 23px; letter-spacing: -.02em; }
body.customers_login .login-subtitle { color: var(--pc-auth-muted); }

body.customers_login .form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #3d4a61;
    font-size: 12px;
    font-weight: 600;
}

body.customers_login .form-label i { width: 15px; margin: 0 !important; color: #74839a; text-align: center; }

body.customers_login .modern-input,
body.customers_login .bootstrap-select > .dropdown-toggle {
    min-height: 44px;
    border: 1px solid var(--pc-auth-border) !important;
    border-radius: 9px !important;
    background: #fff !important;
    box-shadow: none !important;
}

body.customers_login .modern-input:focus {
    border-color: var(--pc-auth-primary) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .10) !important;
}

body.customers_login .modern-btn {
    min-height: 44px;
    border-color: var(--pc-auth-primary) !important;
    border-radius: 9px !important;
    background: var(--pc-auth-primary) !important;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .17) !important;
}

body.customers_login .modern-btn:hover,
body.customers_login .modern-btn:focus { border-color: var(--pc-auth-primary-dark) !important; background: var(--pc-auth-primary-dark) !important; }

body.register .modern-register-stepper { border-color: #e0e6ef; border-radius: 12px; background: #f7f9fc; }
body.register .modern-register-step { border-radius: 9px; }
body.register .modern-register-step[aria-current="step"] { color: var(--pc-auth-primary); border-color: #cbd9f6; background: #fff; box-shadow: 0 3px 10px rgba(37, 99, 235, .07); }
body.register .modern-register-step[aria-current="step"] .step-dot { background: var(--pc-auth-primary); }

body.customers_login footer.footer .copyright-footer { color: #7b879b; }

@media (max-width: 1199px) {
    body.customers_login .modern-login-modules { opacity: .96; width: min(440px, 39vw); }
}

@media (max-width: 991px) {
    body.customers_login .modern-login-wrapper { padding-top: 90px; overflow: visible; }
    body.customers_login .modern-login-main { padding-right: 0; }
    body.customers_login .modern-login-top { display: none; }
}

@media (max-width: 520px) {
    .pc-auth-card { padding: 26px 21px; border-radius: 14px; }
    .pc-auth-card-footer { margin: 22px -21px -26px; border-radius: 0 0 14px 14px; }
    .pc-auth-options { align-items: flex-start; flex-direction: column; }
    .pc-auth-recaptcha { transform: scale(.88); transform-origin: left top; margin-bottom: -15px; }
    body.customers_login .login-form-side,
    body.register.customers_login .login-form-side { padding: 22px 18px; }
}

/* Fluent authentication refinement: flat surfaces and a full-bleed trust footer. */
body.login_admin,
body.customers_login,
.pc-auth-shell,
body.customers_login .modern-login-wrapper {
    font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif !important;
}

.pc-auth-brand-logo,
.pc-browser-brand-logo {
    display: inline-block;
    min-width: 0;
    min-height: 0;
    margin-bottom: 26px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.pc-auth-brand-logo img,
.pc-browser-brand-logo img {
    width: auto;
    max-width: 210px;
    height: auto;
    max-height: 64px;
    margin: 0;
}

.pc-auth-shell .pc-auth-card,
body.customers_login .modern-login-card {
    --pc-auth-card-gutter: 28px;
    overflow: hidden;
    padding: var(--pc-auth-card-gutter);
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 0;
    background: #fff;
    box-shadow: 0 16px 38px rgba(8, 24, 20, .18);
}

body.customers_login .login-form-side,
body.register.customers_login .login-form-side {
    --pc-auth-card-gutter: 28px;
    padding: var(--pc-auth-card-gutter);
}

body.customers_login .modern-login-card { padding: 0; }

.pc-tenant-identity {
    min-height: 52px;
    gap: 14px;
    margin: 0 0 24px;
    padding: 0 0 18px;
    border-bottom-color: #e5e7eb;
}

.pc-tenant-logo {
    width: 78px;
    height: 42px;
    flex-basis: 78px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.pc-tenant-logo img { max-height: 40px !important; }
.pc-tenant-copy span { color: #6b7280; font-size: 9px; letter-spacing: .08em; }
.pc-tenant-copy strong { color: #111827; font-size: 14px; font-weight: 600; }

.pc-auth-shell .pc-auth-header,
body.customers_login .login-header { margin-bottom: 24px !important; }

.pc-auth-shell .pc-auth-header h1,
body.customers_login .login-title {
    color: #111827;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.25;
}

.pc-auth-shell .pc-auth-header p,
body.customers_login .login-subtitle { color: #6b7280; font-size: 12px; }

.pc-auth-shell .pc-auth-form .form-control,
body.customers_login .modern-input,
body.customers_login .modern-login-card .form-control,
body.customers_login .bootstrap-select > .dropdown-toggle {
    min-height: 40px;
    border-color: #8a8886;
    border-radius: 2px !important;
    background: #fff;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.pc-auth-shell .pc-auth-form .form-control:hover,
body.customers_login .modern-login-card .form-control:hover { border-color: #323130; }

.pc-auth-shell .pc-auth-form .form-control:focus,
body.customers_login .modern-login-card .form-control:focus {
    border-color: #47745f;
    box-shadow: inset 0 -2px 0 #47745f;
}

.pc-auth-shell .pc-auth-submit.btn,
body.customers_login .modern-btn {
    min-height: 40px;
    border-radius: 2px !important;
    font-weight: 600;
}

.pc-agt-approval {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 4px 11px;
    margin: 24px calc(var(--pc-auth-card-gutter) * -1) calc(var(--pc-auth-card-gutter) * -1);
    padding: 15px var(--pc-auth-card-gutter);
    border: 0;
    border-top: 1px solid #d8e4dd;
    border-radius: 0;
    background: #f3f8f5;
}

.pc-agt-seal {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    box-shadow: none;
}

.pc-agt-copy strong { color: #1f3f34; font-size: 10px; font-weight: 600; }
.pc-agt-copy small { color: #64756c; }
.pc-agt-number {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
    margin: 0;
    padding: 4px 7px;
    border: 1px solid #cfe1d7;
    border-radius: 2px;
    background: transparent;
    white-space: nowrap;
}

.pc-auth-back,
.pc-public-auth-back { margin: 18px 0 0; }

@media (max-width: 520px) {
    .pc-auth-shell .pc-auth-card,
    body.customers_login .login-form-side,
    body.register.customers_login .login-form-side {
        --pc-auth-card-gutter: 20px;
        border-radius: 0;
    }

    .pc-agt-approval { grid-template-columns: 32px minmax(0, 1fr); }
    .pc-agt-number { grid-column: 2; grid-row: auto; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
    body.login_admin *,
    body.customers_login * { animation: none !important; transition: none !important; }
}

/* Browser-home composition for public customer authentication. */
body.customers_login,
body.customers_login #wrapper,
body.customers_login #content {
    background: #273463 !important;
}

body.customers_login .modern-login-wrapper {
    isolation: isolate;
    background: transparent !important;
}

body.customers_login .background-container {
    display: block !important;
    position: fixed;
    inset: 0;
    z-index: 0;
    background-color: #354c9a;
    background-image: url("images/login_bg.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

body.customers_login .background-container::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(11, 21, 54, .48) 0%, rgba(27, 39, 86, .18) 48%, rgba(10, 18, 44, .34) 100%),
        linear-gradient(180deg, rgba(18, 26, 64, .10), rgba(13, 20, 48, .28));
}

body.customers_login .background-container::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: .72;
    background:
        radial-gradient(circle at 18% 24%, rgba(94, 234, 212, .24), transparent 26rem),
        radial-gradient(circle at 72% 18%, rgba(255, 255, 255, .17), transparent 23rem),
        radial-gradient(circle at 86% 86%, rgba(196, 181, 253, .24), transparent 27rem);
}

body.customers_login nav.navbar.navbar-default.header .navbar-nav > li > a {
    color: rgba(255, 255, 255, .82) !important;
    text-shadow: 0 1px 12px rgba(8, 15, 38, .24);
}

body.customers_login nav.navbar.navbar-default.header .navbar-nav > li > a:hover,
body.customers_login nav.navbar.navbar-default.header .navbar-nav > li.active > a {
    color: #fff !important;
}

body.customers_login .modern-login-top {
    padding-top: 23px;
}

body.customers_login .modern-login-gadgets .gadget-tile {
    width: 88px;
    min-height: 66px;
    color: rgba(255, 255, 255, .92);
    border-color: rgba(255, 255, 255, .20);
    background: rgba(19, 29, 65, .18);
    box-shadow: 0 10px 30px rgba(8, 15, 38, .10);
    backdrop-filter: blur(18px) saturate(130%);
}

body.customers_login .modern-login-gadgets .gadget-tile:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, .38);
    background: rgba(255, 255, 255, .16);
}

body.customers_login .modern-login-main {
    justify-content: flex-end;
    padding-right: clamp(24px, 5vw, 88px);
}

body.customers_login .modern-login-main-grid {
    max-width: 590px;
}

body.customers_login .modern-login-modules {
    top: 50%;
    bottom: auto;
    left: clamp(24px, 4vw, 76px);
    width: min(590px, 43vw);
    transform: translateY(-40%);
}

body.register.customers_login .modern-login-modules {
    top: 50%;
    bottom: auto;
    width: min(550px, 40vw);
    transform: translateY(-39%);
}

body.customers_login .pc-browser-intro {
    max-width: 560px;
    margin: 0 0 24px 4px;
    color: #fff;
    text-shadow: 0 2px 18px rgba(8, 15, 38, .22);
}

body.customers_login .pc-browser-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 7px 11px;
    color: rgba(255, 255, 255, .92);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(12, 22, 56, .17);
    backdrop-filter: blur(14px);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

body.customers_login .pc-browser-intro h1 {
    max-width: 540px;
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 3.15vw, 52px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.045em;
}

body.customers_login .pc-browser-intro p {
    max-width: 500px;
    margin: 15px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
    line-height: 1.65;
}

body.customers_login .modules-widget-card,
body.customers_login .modules-stats-card {
    border-color: rgba(255, 255, 255, .20);
    background: rgba(13, 22, 55, .22);
    box-shadow: 0 18px 46px rgba(7, 14, 35, .16);
    backdrop-filter: blur(22px) saturate(125%);
}

body.customers_login .modules-panel-title,
body.customers_login .modules-panel-subtitle {
    color: rgba(255, 255, 255, .92);
}

body.customers_login .modules-panel-subtitle { color: rgba(255, 255, 255, .67); }

body.customers_login .module-app {
    border-color: rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .10);
}

body.customers_login .module-app:hover {
    border-color: rgba(255, 255, 255, .32);
    background: rgba(255, 255, 255, .18);
}

body.customers_login .module-app-icon {
    color: #4057b8;
    background: rgba(255, 255, 255, .90);
    box-shadow: 0 7px 18px rgba(8, 15, 38, .12);
}

body.customers_login .module-app-icon img { background: rgba(255, 255, 255, .96); }
body.customers_login .module-app-title { color: rgba(255, 255, 255, .92); }

body.customers_login .modules-stat {
    border-color: rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .10);
}

body.customers_login .modules-stat-label { color: rgba(255, 255, 255, .67); }
body.customers_login .modules-stat-value { color: #fff; }

body.customers_login .modern-login-card {
    border-color: rgba(255, 255, 255, .56);
    background: rgba(255, 255, 255, .93);
    box-shadow: 0 30px 80px rgba(8, 15, 38, .25);
    backdrop-filter: blur(28px) saturate(125%);
}

body.customers_login footer.footer .copyright-footer,
body.customers_login footer.footer a.terms-and-conditions-footer,
body.customers_login footer.footer a.gdpr-footer {
    color: rgba(255, 255, 255, .76) !important;
    text-shadow: 0 1px 10px rgba(8, 15, 38, .20);
}

@media (max-width: 1199px) {
    body.customers_login .modern-login-modules { width: min(450px, 39vw); }
    body.customers_login .pc-browser-intro h1 { font-size: 36px; }
    body.customers_login .module-app { flex-basis: 116px; }
}

@media (max-width: 991px) {
    body.customers_login .modern-login-main { justify-content: center; padding-right: 0; }
    body.customers_login .modern-login-modules { display: none; }
    body.customers_login .modern-login-main-grid { max-width: 600px; }
    body.customers_login .modern-login-card { background: rgba(255, 255, 255, .95); }
}

/* Unified DataManager-inspired authentication composition. */
body.login_admin {
    background: #f5f7fa !important;
}

.pc-auth-shell {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(410px, 560px) minmax(360px, 430px);
    min-height: 100vh;
    gap: clamp(48px, 8vw, 150px);
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 70px clamp(28px, 6vw, 110px) 150px;
    background: linear-gradient(135deg, #315b4b 0%, #294f45 55%, #203d3d 100%);
}

.pc-auth-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: .36;
    background:
        radial-gradient(circle at 14% 24%, rgba(147, 197, 173, .32), transparent 27rem),
        radial-gradient(circle at 68% 12%, rgba(255, 255, 255, .10), transparent 22rem);
}

.pc-auth-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: #f7f9fb;
    clip-path: polygon(100% 10%, 100% 100%, 0 100%, 0 82%, 80% 72%);
}

.pc-auth-brand {
    position: relative;
    z-index: 2;
    align-self: center;
    color: #fff;
}

.pc-auth-brand-logo,
.pc-browser-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 154px;
    min-height: 66px;
    margin-bottom: 21px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 13px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 12px 28px rgba(8, 24, 20, .16);
}

.pc-auth-brand-logo .company-logo,
.pc-browser-brand-logo .company-logo { display: block; padding: 0 !important; }
.pc-auth-brand-logo img,
.pc-browser-brand-logo img { display: block; max-width: 190px; max-height: 54px; margin: auto; }

.pc-tenant-identity {
    display: flex;
    min-height: 62px;
    align-items: center;
    gap: 13px;
    margin: -3px 0 20px;
    padding: 0 0 17px;
    border-bottom: 1px solid #e8edf1;
}

.pc-tenant-logo {
    display: flex;
    width: 78px;
    height: 48px;
    flex: 0 0 78px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 5px 7px;
    border: 1px solid #e2e8ec;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 14px rgba(25, 50, 42, .07);
}

.pc-tenant-logo a { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.pc-tenant-logo img { display: block; max-width: 100% !important; max-height: 38px !important; margin: auto; object-fit: contain; }
.pc-tenant-logo .logo-text { color: #315b4b; font-size: 11px; font-weight: 700; line-height: 1.15; text-align: center; }
.pc-tenant-copy { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.pc-tenant-copy span {
    color: #819087;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .075em;
    line-height: 1.2;
    text-transform: uppercase;
}
.pc-tenant-copy strong {
    overflow: hidden;
    color: #1c2c27;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pc-agt-approval {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 2px 10px;
    align-items: center;
    margin-top: 18px;
    padding: 13px 14px;
    border: 1px solid #dbe8e1;
    border-radius: 10px;
    background: linear-gradient(135deg, #f7fbf8 0%, #f3f8f5 100%);
}

.pc-agt-seal {
    display: inline-flex;
    grid-row: 1 / span 2;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: #5c8f78;
    box-shadow: 0 5px 12px rgba(92, 143, 120, .20);
}
.pc-agt-copy { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.pc-agt-copy strong { color: #25463a; font-size: 10px; font-weight: 700; line-height: 1.3; }
.pc-agt-copy small { color: #74837b; font-size: 9px; line-height: 1.3; }
.pc-agt-number {
    grid-column: 2;
    width: max-content;
    max-width: 100%;
    margin-top: 4px;
    padding: 3px 7px;
    border-radius: 5px;
    color: #47745f;
    background: #e6f2eb;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .035em;
    line-height: 1.3;
    text-transform: uppercase;
}

.pc-auth-brand h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 3vw, 52px);
    font-weight: 750;
    line-height: 1.05;
    letter-spacing: -.04em;
}

.pc-auth-brand h3 {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, .96);
    font-size: clamp(22px, 2vw, 31px);
    font-weight: 650;
    letter-spacing: -.025em;
}

.pc-auth-brand p {
    max-width: 520px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
    line-height: 1.65;
}

.pc-auth-shell .pc-auth-card {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 25px 27px;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 18px 52px rgba(7, 20, 18, .24);
}

.pc-auth-shell .pc-auth-header { margin-bottom: 21px; text-align: left; }
.pc-auth-shell .pc-auth-header .pc-auth-logo,
.pc-auth-shell .pc-auth-header .pc-auth-eyebrow { display: none; }
.pc-auth-shell .pc-auth-header h1 { font-size: 19px; letter-spacing: -.015em; }
.pc-auth-shell .pc-auth-header p { font-size: 11px; }
.pc-auth-shell .pc-auth-form .form-control { height: 42px; border-radius: 8px; }
.pc-auth-shell .pc-auth-submit.btn { min-height: 42px; border-color: #5c8f78 !important; background: #5c8f78 !important; box-shadow: none; }
.pc-auth-shell .pc-auth-submit.btn:hover,
.pc-auth-shell .pc-auth-submit.btn:focus { border-color: #47745f !important; background: #47745f !important; }
.pc-auth-shell .pc-auth-card-footer { display: none; }

body.customers_login nav.navbar.navbar-default.header,
body.customers_login .modern-login-top,
body.customers_login .modern-login-modules .modules-panel { display: none !important; }

body.customers_login .modern-login-wrapper {
    min-height: 100vh;
    padding: 0 0 120px !important;
}

body.customers_login .background-container {
    background: linear-gradient(135deg, #315b4b 0%, #294f45 55%, #203d3d 100%);
}

body.customers_login .background-container::before {
    z-index: 1;
    background:
        radial-gradient(circle at 14% 24%, rgba(147, 197, 173, .30), transparent 27rem),
        radial-gradient(circle at 68% 12%, rgba(255, 255, 255, .10), transparent 22rem);
}

body.customers_login .background-container::after {
    z-index: 2;
    opacity: 1;
    background: #f7f9fb;
    clip-path: polygon(100% 10%, 100% 100%, 0 100%, 0 82%, 80% 72%);
}

body.customers_login .modern-login-main {
    display: grid;
    grid-template-columns: minmax(410px, 560px) minmax(380px, 560px);
    min-height: calc(100vh - 40px);
    gap: clamp(48px, 7vw, 140px);
    align-items: center;
    justify-content: center;
    padding: 68px clamp(28px, 6vw, 110px) 130px;
}

body.customers_login .modern-login-modules,
body.register.customers_login .modern-login-modules {
    position: static;
    display: block !important;
    width: auto;
    transform: none;
}

body.customers_login .pc-browser-intro {
    max-width: 560px;
    margin: 0;
}

body.customers_login .pc-browser-kicker {
    margin-bottom: 13px;
    border-color: rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .08);
}

body.customers_login .pc-browser-intro h1 {
    max-width: 550px;
    font-size: clamp(35px, 3.1vw, 52px);
}

body.customers_login .pc-browser-intro p { font-size: 14px; }

body.customers_login .modern-login-main-grid,
body.register.customers_login .modern-login-main-grid {
    width: 100%;
    max-width: 560px;
    padding: 0;
}

body.customers_login .modern-login-card {
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 18px 52px rgba(7, 20, 18, .24);
    backdrop-filter: none;
}

body.customers_login .login-form-side,
body.register.customers_login .login-form-side { padding: 25px 27px; }

body.customers_login .login-header { margin-bottom: 20px !important; text-align: left !important; }
body.customers_login .login-header .logo-container { display: none; }
body.customers_login .login-title { margin: 0; font-size: 19px; }
body.customers_login .login-subtitle { margin-top: 5px; font-size: 11px; }
body.customers_login .modern-input,
body.customers_login .bootstrap-select > .dropdown-toggle { min-height: 42px; border-radius: 8px !important; }
body.customers_login .modern-login-card .form-control {
    min-height: 42px;
    border: 1px solid var(--pc-auth-border);
    border-radius: 8px;
    box-shadow: none;
}
body.customers_login .modern-login-card .form-control:focus {
    border-color: #5c8f78;
    box-shadow: 0 0 0 3px rgba(92, 143, 120, .12);
}
body.customers_login .modern-btn { min-height: 42px; border-color: #5c8f78 !important; background: #5c8f78 !important; box-shadow: none !important; }
body.customers_login .modern-btn:hover,
body.customers_login .modern-btn:focus { border-color: #47745f !important; background: #47745f !important; }

.pc-public-auth-back { margin-top: 18px; text-align: center; }
.pc-public-auth-back a { display: inline-flex; align-items: center; gap: 8px; color: #47745f; font-size: 12px; font-weight: 600; }

body.customers_login footer.footer .copyright-footer,
body.customers_login footer.footer a.terms-and-conditions-footer,
body.customers_login footer.footer a.gdpr-footer {
    color: #627086 !important;
    text-shadow: none;
}

@media (max-width: 991px) {
    .pc-auth-shell,
    body.customers_login .modern-login-main {
        display: flex;
        min-height: 100vh;
        align-items: center;
        justify-content: center;
        padding: 70px 20px 130px;
    }

    .pc-auth-brand,
    body.customers_login .modern-login-modules { display: none !important; }
    .pc-auth-shell .pc-auth-card { max-width: 440px; }
    body.customers_login .modern-login-main-grid { max-width: 580px; }
}

@media (max-width: 520px) {
    .pc-auth-shell::after,
    body.customers_login .background-container::after {
        clip-path: polygon(100% 60%, 100% 100%, 0 100%, 0 88%);
    }

    .pc-auth-shell .pc-auth-card,
    body.customers_login .modern-login-card { border-radius: 13px; }
    .pc-auth-shell .pc-auth-card,
    body.customers_login .login-form-side,
    body.register.customers_login .login-form-side { padding: 22px 19px; }
}

/* Final flat Fluent rules. Keep this block last so legacy theme rules cannot restore rounding. */
body.login_admin .pc-auth-shell *,
body.customers_login .modern-login-card * {
    border-radius: 0 !important;
}

.pc-auth-brand-logo,
.pc-browser-brand-logo,
.pc-auth-brand-logo:hover,
.pc-browser-brand-logo:hover {
    display: inline-block;
    min-width: 0;
    min-height: 0;
    margin-bottom: 26px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0;
    background: transparent !important;
    box-shadow: none !important;
}

.pc-auth-brand-logo img,
.pc-browser-brand-logo img {
    display: block;
    width: auto;
    max-width: 210px;
    height: auto;
    max-height: 64px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none;
}

.pc-auth-shell .pc-auth-card,
body.customers_login .modern-login-card {
    overflow: hidden;
    border-radius: 0 !important;
}

.pc-auth-shell .pc-auth-card { --pc-auth-card-gutter: 28px; padding: var(--pc-auth-card-gutter); }
body.customers_login .modern-login-card { padding: 0; }
body.customers_login .login-form-side,
body.register.customers_login .login-form-side {
    --pc-auth-card-gutter: 28px;
    padding: var(--pc-auth-card-gutter);
}

.pc-tenant-logo {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.pc-agt-approval {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 4px 11px;
    align-items: center;
    width: auto;
    margin: 24px calc(var(--pc-auth-card-gutter) * -1) calc(var(--pc-auth-card-gutter) * -1);
    padding: 16px var(--pc-auth-card-gutter);
    border: 0 !important;
    border-top: 1px solid #d8e4dd !important;
    border-radius: 0 !important;
    background: #f3f8f5;
}

.pc-agt-seal {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 32px;
    height: 32px;
    border-radius: 0 !important;
    box-shadow: none;
}

.pc-agt-copy {
    display: flex;
    grid-column: 2;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.pc-agt-copy strong {
    display: block;
    color: #1f3f34;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    white-space: normal;
}

.pc-agt-copy small {
    display: block;
    color: #64756c;
    font-size: 10px;
    line-height: 1.4;
}

.pc-agt-number {
    display: block;
    grid-column: 2;
    grid-row: auto;
    width: max-content;
    max-width: 100%;
    margin: 3px 0 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent;
    color: #47745f;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.35;
    white-space: normal;
}

@media (max-width: 520px) {
    .pc-auth-shell .pc-auth-card,
    body.customers_login .login-form-side,
    body.register.customers_login .login-form-side {
        --pc-auth-card-gutter: 20px;
        padding: var(--pc-auth-card-gutter);
    }
}
