/*
 * Login page (auth/login_new.blade.php)
 * Split layout: brand panel on the left, sign-in card on the right.
 * Scoped under .login-nsirs so it does not leak into other pages, and it
 * deliberately does not replace login-3.min.css (still used by the biometric login).
 */

:root {
    --auth-green: #0a5c33;
    --auth-green-dark: #06402a;
    --auth-green-hover: #084a2a;
    --auth-ink: #1b2430;
    --auth-muted: #6b7686;
    --auth-line: #d7dde5;
    --auth-bg: #f4f6f8;
}

/* NOTE: components.min.css forces `border-radius: 0 !important` on div/input/button/img,
   so the radii below carry !important too (still scoped to login classes only). */

/* Undo the admin shell (sidebar offset / padding) that master.blade.php wraps content in */
body.login-nsirs {
    background: var(--auth-bg);
    font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--auth-ink);
}
.login-nsirs .page-container,
.login-nsirs .page-content-wrapper,
.login-nsirs .page-content-wrapper .page-content {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0;
    background: transparent;
}

.auth-shell {
    display: flex;
    min-height: 100vh;
}

/* ---------- Brand panel ---------- */
.auth-brand {
    position: relative;
    flex: 0 0 46%;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px;
    color: #fff;
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 255, 255, .09) 0, rgba(255, 255, 255, 0) 45%),
        linear-gradient(160deg, var(--auth-green) 0%, var(--auth-green-dark) 100%);
    overflow: hidden;
}
.auth-brand::after {
    /* soft decorative ring, purely cosmetic */
    content: "";
    position: absolute;
    right: -140px;
    bottom: -140px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 60px solid rgba(255, 255, 255, .05);
}
.auth-brand-main {
    position: relative;
    z-index: 1;
    margin: auto 0;
}
.auth-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 148px;
    height: 148px;
    margin-bottom: 32px;
    background: #fff;
    border-radius: 24px !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .22);
}
.auth-brand-logo img {
    width: 132px;
    height: 132px;
    object-fit: contain;
}
.auth-brand h1 {
    margin: 0 0 10px;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -.3px;
    color: #fff;
}
.auth-brand .auth-org {
    margin: 0 0 18px;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, .92);
}
.auth-brand .auth-tagline {
    max-width: 380px;
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .72);
}
.auth-brand-foot {
    position: relative;
    z-index: 1;
    font-size: 12px;
    color: rgba(255, 255, 255, .6);
}

/* ---------- Form panel ---------- */
.auth-panel {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}
.auth-card {
    width: 100%;
    max-width: 400px;
}
.auth-mobile-logo {
    display: none;
    width: 84px;
    height: 84px;
    margin: 0 auto 20px;
}
.auth-card .auth-title {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
    color: var(--auth-ink);
}
.auth-card .auth-subtitle {
    margin: 0 0 28px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--auth-muted);
}

/* Alerts */
.auth-card .alert {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 6px !important;
    font-size: 13px;
}
.auth-card .alert ul {
    margin: 0;
    padding-left: 18px;
}
.auth-card .alert .close {
    font-size: 20px;
    line-height: 1;
}

/* Fields */
.auth-card .form-group {
    margin-bottom: 18px;
}
.auth-card .auth-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--auth-ink);
}
.auth-card .input-icon {
    position: relative;
    border: 0 !important;
}
.auth-card .input-icon > i {
    position: absolute;
    top: 0;
    left: 0;
    width: 44px;
    height: 46px;
    margin: 0;
    line-height: 46px;
    text-align: center;
    font-size: 15px;
    color: #98a2b1;
    pointer-events: none;
    z-index: 3;
}
.auth-card .input-icon > .form-control,
.auth-card .input-icon > .form-control:focus {
    height: 46px;
    padding: 0 14px 0 44px;
    font-size: 14px;
    color: var(--auth-ink);
    background: #fff;
    border: 1px solid var(--auth-line);
    border-radius: 6px !important;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-card .input-icon > .form-control::placeholder {
    color: #a3acb9;
}
.auth-card .input-icon > .form-control:focus {
    border-color: var(--auth-green);
    box-shadow: 0 0 0 3px rgba(10, 92, 51, .14);
}
.auth-card .input-icon:focus-within > i {
    color: var(--auth-green);
}
.auth-card .has-error .input-icon > .form-control {
    border-color: #d9534f;
}
.auth-card .help-block {
    margin: 6px 0 0;
    font-size: 12px;
    color: #c9302c;
}

/* Remember me / forgot password row */
.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 24px;
    font-size: 13px;
}
.auth-check {
    display: inline-flex;
    align-items: center;
    margin: 0;
    font-weight: 400;
    color: var(--auth-ink);
    cursor: pointer;
}
.auth-check input {
    border-radius: 3px !important;
    width: 16px;
    height: 16px;
    margin: 0 8px 0 0;
    accent-color: var(--auth-green);
    cursor: pointer;
}
.auth-card a,
.auth-card a:visited {
    color: var(--auth-green);
    font-weight: 600;
    text-decoration: none;
}
.auth-card a:hover {
    color: var(--auth-green-hover);
    text-decoration: underline;
}

/* Buttons */
.auth-card .auth-btn {
    display: block;
    width: 100%;
    height: 46px;
    padding: 0 16px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: var(--auth-green);
    border: 0;
    border-radius: 6px !important;
    transition: background-color .15s ease, box-shadow .15s ease;
}
.auth-card .auth-btn:hover,
.auth-card .auth-btn:focus {
    background: var(--auth-green-hover);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(10, 92, 51, .22);
}
.auth-card .auth-btn-ghost {
    margin-top: 10px;
    color: var(--auth-ink);
    background: #fff;
    border: 1px solid var(--auth-line);
}
.auth-card .auth-btn-ghost:hover,
.auth-card .auth-btn-ghost:focus {
    background: var(--auth-bg);
    box-shadow: none;
}

.auth-card .forget-form {
    padding: 0;
    margin: 0;
}
.auth-panel-foot {
    display: none;
    margin-top: 32px;
    text-align: center;
    font-size: 12px;
    color: var(--auth-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .auth-brand {
        display: none;
    }
    .auth-mobile-logo {
        display: block;
    }
    .auth-card .auth-title,
    .auth-card .auth-subtitle {
        text-align: center;
    }
    .auth-panel-foot {
        display: block;
    }
}
@media (max-width: 480px) {
    .auth-panel {
        align-items: flex-start;
        padding: 32px 16px;
    }
}
