/* Login page - Simhasth PMIS */

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
    --lg-navy: #12295c;
    --lg-blue: #0b5cab;
    --lg-blue-dark: #0b4f9c;
    --lg-teal: #14c7c9;
    --lg-muted: #6b7a90;
    --lg-border: #d5dce8;
    --lg-shadow: 0 10px 30px rgba(18, 41, 92, .08);
}

/* ==========================================================================
   2. Layout shell
   ========================================================================== */
.login-new-sec.main-wrapper {
    padding: 18px;
    min-height: 100vh;
    background: #d1e3ffa3  !important;
}

.login-new-sec .container-fluid {
    padding: 0;
}

.login-new-sec .row {
    margin: 0;
}

.login-new-sec .row>[class*="col-"] {
    padding: 0;
}

.login-new-sec .w-100.vh-100 {
    height: calc(100vh - 36px) !important;
    min-height: 640px;
    border-radius: 18px;
    background: transparent !important;
    box-shadow: 0 12px 40px rgba(18, 41, 92, .14);
}

/* ==========================================================================
   3. Left banner
   ========================================================================== */
.login-new-sec .vh-100.bg-primary-transparent {
    height: calc(100vh - 36px) !important;
    min-height: 640px;
}

#imgagefadding {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--lg-navy);
}

#imgagefadding::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(10, 30, 75, .78) 0%, rgba(10, 30, 75, .25) 45%, rgba(10, 30, 75, .85) 100%);
}

#imgagefadding .vegas-content-scrollable,
#imgagefadding .vegas-wrapper {
    height: 100%;
}

.lg-left {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px 36px;
    color: #fff;
}

.lg-left-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lg-gov-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.lg-gov-text span,
.lg-gov-text strong,
.lg-gov-text small {
    display: block;
}

.lg-gov-text span {
    font-size: 14px;
    opacity: .9;
}

.lg-gov-text strong {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
}

.lg-gov-text small {
    margin-top: 2px;
    font-size: 13px;
    opacity: .9;
}

.lg-left-mid h1 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 54px;
    font-weight: 700;
    line-height: 1.05;
}

.lg-year {
    background: linear-gradient(90deg, #ff9933 0%, #f2c230 35%, #4cae4f 70%, #1fb5a8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.lg-line {
    width: 90px;
    height: 2px;
    margin: 12px 0;
    background: rgba(255, 255, 255, .7);
}

.lg-sub {
    margin: 0 0 40px;
    color: #fff;
    font-size: 20px;
}

.lg-quote {
    margin: 0 0 6px;
    color: #fff;
    font-size: 28px;
}

.lg-quote-sub {
    margin: 0;
    font-size: 15px;
    opacity: .95;
}

.lg-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.lg-features>div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 14px;
    border-left: 1px solid rgba(255, 255, 255, .3);
}

.lg-features>div:first-child {
    padding-left: 0;
    border-left: 0;
}

.lg-features i {
    margin-bottom: 6px;
    font-size: 26px;
}

.lg-features b {
    font-size: 14px;
    font-weight: 600;
}

.lg-features span {
    font-size: 13px;
    opacity: .85;
}

/* ==========================================================================
   4. Right panel
   ========================================================================== */
.login-new-sec form.vh-100 {
    height: calc(100vh - 36px) !important;
    min-height: 640px;
}

.login-new-sec form>.vh-100 {
    position: relative;
    align-items: center;
    justify-content: center !important;
    height: 100% !important;
    padding: 24px !important;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 12%, rgba(205, 220, 245, .55) 0, transparent 38%),
        radial-gradient(circle at 10% 95%, rgba(214, 227, 248, .6) 0, transparent 40%),
        linear-gradient(160deg, #f9fbff 0%, #eef3fc 100%) !important;
}

.login-body {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
}

/* Temple pattern, behind the footer text */
.lg-temple {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -50px;
    z-index: 0;
    height: 500px;
    pointer-events: none;
    background: url(../images/login-temple-pattern.png) no-repeat center bottom / contain;
    opacity: .25;
}

.footer-login {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    z-index: 2;
    color: var(--lg-muted);
    font-size: 11px;
}

/* ==========================================================================
   5. Header (logo + title)
   ========================================================================== */
.logo-desc-view {
    margin-bottom: 18px;
    text-align: center;
}

.logo-desc-view .logo-v {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    padding: 10px;
    border: 1px solid #e8edf6;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(18, 41, 92, .1);
}

.logo-desc-view .logo-v img {
    display: block;
    width: 120px;
    height: auto;
}

.login-body .project-title {
    margin: 0;
    color: var(--lg-blue-dark);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: .2px;
}

.login-body .project-title .sub-tag-h {
    display: block;
    margin-top: 8px;
    color: #5b6b82;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: .2px;
}

/* ==========================================================================
   6. Login card
   ========================================================================== */
.lg-card {
    padding: 20px 22px 22px;
    border: 1px solid #eef1f7;
    border-radius: 14px;
    background: rgba(255, 255, 255, .85);
    box-shadow: var(--lg-shadow);
    backdrop-filter: blur(4px);
}

.lg-card .mb-3 {
    margin-bottom: 12px !important;
}

.lg-welcome {
    margin: 0 0 2px;
    color: var(--lg-navy);
    font-size: 20px;
    font-weight: 700;
}

.lg-welcome-sub {
    margin: 0 0 16px;
    color: var(--lg-muted);
    font-size: 12px;
}

/* Hidden until the login script calls .show() */
#error_msg {
    display: none;
    margin-bottom: 14px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
}

.error {
    color: #d93025;
    font-size: 12px;
}

/* ---------- Inputs ---------- */
.input-field-icon {
    position: relative;
}

.input-field-icon .form-control {
    height: 40px;
    padding: 0 42px 0 46px;
    border: 1px solid var(--lg-border) !important;
    border-radius: 8px;
    background: #f9fbfe;
    box-shadow: none;
    font-size: 13.5px;
}

.input-field-icon .form-control:focus {
    border-color: var(--lg-blue) !important;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(11, 92, 171, .12);
}

.lg-left-icon,
.input-field-icon .input-icon {
    position: absolute;
    top: 50%;
    width: 18px;
    transform: translateY(-50%);
    color: var(--lg-muted);
    text-align: center;
}

.lg-left-icon {
    left: 15px;
    z-index: 2;
    font-size: 15px;
}

.input-field-icon .input-icon {
    right: 15px;
    font-size: 14px;
    cursor: default;
}

.input-field-icon .toggle-password {
    cursor: pointer;
}

/* ---------- Remember me / forgot ---------- */
.form-check-input {
    width: 16px;
    height: 16px;
    margin-top: 0;
    border: 1.5px solid var(--lg-muted);
    border-radius: 4px;
}

.form-check-input:checked {
    border-color: var(--lg-blue);
    background-color: var(--lg-blue);
}

.form-check-label {
    margin-left: 4px;
    color: var(--lg-muted);
    font-size: 12.5px;
}

.lg-forgot {
    color: var(--lg-blue);
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
}

.lg-forgot:hover {
    text-decoration: underline;
}

/* ---------- Sign in button ---------- */
.lg-signin {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(90deg, #0b4f9c 0%, #0f86c4 55%, var(--lg-teal) 100%);
    box-shadow: 0 6px 14px rgba(11, 92, 171, .25) !important;
    color: #fff !important;
    font-size: 14.5px;
    font-weight: 500;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.lg-signin i,
.lg-signin span {
    color: #fff !important;
}

.lg-signin .lg-signin-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lg-signin .lg-signin-label i {
    font-size: 15px;
}

.lg-signin>.fa-arrow-right {
    position: absolute;
    right: 18px;
    font-size: 13px;
    transition: transform .2s ease;
}

.lg-signin:hover,
.lg-signin:focus {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 10px 20px rgba(11, 92, 171, .35) !important;
}

.lg-signin:hover>.fa-arrow-right {
    transform: translateX(4px);
}

.lg-signin:active {
    transform: translateY(0);
}

/* ---------- OR divider ---------- */
.lg-or {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 10px;
    color: var(--lg-muted);
    font-size: 11.5px;
    letter-spacing: .5px;
}

.lg-or::before,
.lg-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--lg-border);
}

/* ---------- Download app button ---------- */
.downloads {
    display: flex;
    justify-content: center;
}

.downloads .store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: auto;
    min-width: 78%;
    height: 40px;
    margin: 0 auto;
    padding: 0 20px;
    border: 1px solid #c9d6ee !important;
    border-radius: 999px;
    background: #f3f6fd !important;
    box-shadow: none !important;
    color: var(--lg-blue) !important;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.downloads .store-btn:hover {
    transform: translateY(-2px);
    border-color: var(--lg-blue) !important;
    background: #e8f0fe !important;
    box-shadow: 0 8px 18px rgba(11, 92, 171, .18) !important;
}

.lg-store-icons {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.downloads .store-btn .lg-store-ico {
    font-size: 18px;
    font-weight: 400 !important;
    line-height: 1;
}

.downloads .store-btn .lg-ico-play {
    background: linear-gradient(135deg, #00a0ff 0%, #00e676 38%, #ffce00 68%, #ff3a44 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    -webkit-text-fill-color: transparent;
}

.downloads .store-btn .lg-ico-apple {
    color: #111 !important;
    font-size: 20px;
}

.downloads .store-btn .store-btn__t {
    display: inline-flex;
    gap: 5px;
}

.downloads .store-btn .store-btn__t,
.downloads .store-btn .store-btn__sm,
.downloads .store-btn .store-btn__lg,
.downloads .store-btn .lg-store-arrow {
    color: var(--lg-blue) !important;
    font-size: 13px;
    font-weight: 600;
    opacity: 1 !important;
}

.downloads .store-btn .lg-store-arrow {
    margin-left: 4px;
    font-size: 12px;
    transition: transform .2s ease;
}

.downloads .store-btn:hover .lg-store-arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   7. Responsive
   ========================================================================== */
@media (max-width: 1199px) {
    .lg-left-mid h1 {
        font-size: 44px;
    }

    .lg-quote {
        font-size: 24px;
    }
}

@media (max-width: 991px) {
    .login-new-sec {
        padding: 0;
    }

    .login-new-sec .w-100.vh-100 {
        height: auto !important;
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }

    .login-new-sec form.vh-100,
    .login-new-sec form>.vh-100,
    .login-new-sec .row.vh-100,
    .login-new-sec .col-md-12.vh-100 {
        height: auto !important;
        min-height: 100vh;
    }

    .login-new-sec form>.vh-100 {
        padding: 60px 16px 100px !important;
    }
}

@media (max-width: 575px) {
    .login-body .project-title {
        font-size: 25px;
    }

    .login-body .project-title .sub-tag-h {
        font-size: 14px;
    }

    .logo-desc-view .logo-v img {
        width: 100px;
    }

    .lg-card {
        padding: 20px 16px;
    }

    .lg-temple {
        height: 110px;
    }
}
