/* SLDS / NTR Sujala — backend support sign-in */

:root {
    --ink: #06263a;
    --sky: #29b6f6;
    --sky-deep: #0277bd;
    --gold: #ffd54f;
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
}

body.slds-login {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #fff;
    background: #071018;
    -webkit-font-smoothing: antialiased;
}

.login {
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 100vh;
    overflow: hidden;
}

/* ============================================================
   LEFT — program / brand panel
   ============================================================ */
.login-brandpane {
    position: relative;
    flex: 1 1 58%;
    min-width: 0;
    display: flex;
    background: linear-gradient(152deg, #06263a 0%, #073246 38%, #0a1c2a 100%);
}

.login-brandpane-glow {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    background:
        radial-gradient(760px 460px at 10% 6%, rgba(41, 182, 246, 0.20) 0%, rgba(41, 182, 246, 0) 70%),
        radial-gradient(660px 440px at 92% 94%, rgba(249, 168, 37, 0.14) 0%, rgba(249, 168, 37, 0) 70%),
        radial-gradient(560px 360px at 82% 4%, rgba(46, 125, 50, 0.14) 0%, rgba(46, 125, 50, 0) 70%),
        repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.022) 0px, rgba(255, 255, 255, 0.022) 1px, rgba(255, 255, 255, 0) 1px, rgba(255, 255, 255, 0) 22px);
}

.login-brandpane-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    max-width: 860px;
    margin: auto;
    padding: 34px 40px;
}

.gov-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.gov-emblem {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    padding: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.32);
    object-fit: contain;
}

.gov-strip-text {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.gov-strip-line1 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
}

.gov-strip-line2 {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.6);
}

.program-head {
    display: flex;
    align-items: center;
    gap: 16px;
}

.program-emblem {
    width: 54px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.program-title {
    margin: 0;
    font-family: "Poppins", sans-serif;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.01em;
    background: linear-gradient(92deg, #ffffff 0%, #ffe9b0 62%, #ffcc80 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.program-sub {
    margin: 6px 0 0;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
}

.program-copy {
    margin: 0;
    max-width: 620px;
    font-size: 14.5px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.68);
}

.program-copy strong {
    color: var(--gold);
    font-weight: 700;
}

.program-body {
    display: flex;
    align-items: stretch;
    gap: 22px;
}

.hero-photo {
    position: relative;
    flex: 0 0 38%;
    max-width: 268px;
    margin: 0;
    align-self: flex-start;
    height: auto;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
}

.hero-photo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    vertical-align: top;
}

.hero-live {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 50px;
    background: rgba(8, 18, 26, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #e8f5e9;
}

.hero-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #66bb6a;
    animation: heroPulse 2s infinite;
}

@keyframes heroPulse {
    0%   { box-shadow: 0 0 0 0 rgba(102, 187, 106, 0.65); }
    70%  { box-shadow: 0 0 0 9px rgba(102, 187, 106, 0); }
    100% { box-shadow: 0 0 0 0 rgba(102, 187, 106, 0); }
}

.program-side {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-grid {
    display: flex;
    gap: 10px;
}

.stat {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 10px;
    border-radius: 14px;
    text-align: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.13);
}

.stat-value {
    display: block;
    font-family: "Poppins", sans-serif;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
    color: #4fc3f7;
}

.stat-label {
    display: block;
    margin-top: 3px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.58);
}

.feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.8);
}

.feature-list i {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 13px;
    color: #4fc3f7;
    background: rgba(79, 195, 247, 0.14);
    border: 1px solid rgba(79, 195, 247, 0.24);
}

/* ============================================================
   PARTNER CARDS — ACER / Bibo  +  Spoorthy Innovations
   ============================================================ */
.partner-cards {
    display: flex;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.pcard + .pcard {
    margin-left: 16px;
}

.pcard {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    padding: 30px 18px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.065);
    border: 1px solid rgba(255, 255, 255, 0.14);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}

.pcard-acer { border-top: 3px solid #d32f2f; }
.pcard-sipl { border-top: 3px solid #29b6f6; }

.pcard-ribbon {
    position: absolute;
    top: 0;
    left: 18px;
    padding: 4px 12px 5px;
    border-radius: 0 0 10px 10px;
    background: linear-gradient(180deg, #e53935 0%, #b71c1c 100%);
    color: #fff;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    white-space: nowrap;
}

.pcard-ribbon-alt {
    background: linear-gradient(180deg, #29b6f6 0%, #0277bd 100%);
}

.pcard-head {
    display: flex;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: 11px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.16);
}

.pcard-logo {
    flex: 0 0 auto;
    display: block;
    margin-right: 12px;
}

.pcard-logo-acer {
    height: 50px;
    width: auto;
    background: #fff;
    border-radius: 9px;
    padding: 5px 7px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.pcard-logo-sipl {
    height: 46px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.pcard-id {
    min-width: 0;
}

.pcard-name {
    margin: 0;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}

.pcard-name span {
    font-weight: 600;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.pcard-tag {
    display: inline-block;
    margin-top: 7px;
    padding: 3px 9px 4px;
    border-radius: 999px;
    background: rgba(229, 57, 53, 0.16);
    border: 1px solid rgba(229, 57, 53, 0.42);
    color: #ff8a80;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.pcard-tag-alt {
    background: rgba(41, 182, 246, 0.14);
    border-color: rgba(41, 182, 246, 0.42);
    color: #81d4fa;
}

.pcard-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pcard-contact li + li {
    margin-top: 7px;
}

.pcard-contact li {
    display: flex;
    align-items: flex-start;
    font-size: 12.5px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.78);
}

.pcard-contact i {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin: 1px 9px 0 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-size: 11px;
    color: #ffd54f;
    background: rgba(255, 213, 79, 0.13);
    border: 1px solid rgba(255, 213, 79, 0.22);
}

.pcard-sipl .pcard-contact i {
    color: #4fc3f7;
    background: rgba(79, 195, 247, 0.13);
    border-color: rgba(79, 195, 247, 0.24);
}

.pcard-contact a {
    color: #ffffff !important;
    font-weight: 600;
    text-decoration: none;
    word-break: break-word;
}

.pcard-contact a:hover,
.pcard-contact a:focus {
    color: #ffe082 !important;
    text-decoration: underline;
}

.pcard-sipl .pcard-contact a:hover,
.pcard-sipl .pcard-contact a:focus {
    color: #81d4fa !important;
}

.pcard-contact a em {
    display: inline;
    margin-left: 6px;
    font-style: normal;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
    white-space: nowrap;
}

/* ============================================================
   RIGHT — sign-in panel
   ============================================================ */
.login-inner {
    position: relative;
    z-index: 2;
    flex: 0 0 clamp(390px, 34%, 500px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 32px 34px;
    background:
        radial-gradient(520px 380px at 70% 18%, rgba(41, 182, 246, 0.12) 0%, rgba(41, 182, 246, 0) 72%),
        linear-gradient(200deg, #0b1a26 0%, #07131d 55%, #060f17 100%);
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.45);
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 30px 28px 24px;
    border-radius: 24px;
    background: rgba(14, 22, 32, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.login-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 54px;
    padding: 0 10px;
    border-radius: 16px;
    background: linear-gradient(180deg, var(--sky) 0%, var(--sky-deep) 100%);
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.04em;
    box-shadow: 0 10px 24px rgba(2, 119, 189, 0.4);
}

.login-brand-name {
    color: rgba(255, 255, 255, 0.75);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.login-heading {
    margin: 0 0 5px;
    font-family: "Poppins", sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
}

.login-lead {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 13.5px;
}

.alert {
    padding: 11px 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    font-size: 13px;
}

.alert-danger {
    background: rgba(183, 28, 28, 0.24);
    border: 1px solid rgba(255, 138, 128, 0.45);
    color: #ffcdd2;
}

.login-form .form-group {
    position: relative;
    margin-bottom: 15px;
}

.login-label {
    display: block;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.login-field {
    position: relative;
}

.login-field i {
    position: absolute;
    left: 18px;
    top: 50%;
    margin-top: -7px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.form-control {
    display: block;
    width: 100%;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background-color: rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 14px 18px 14px 46px;
    color: #fff;
    font-family: inherit;
    font-size: 14.5px;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control.captcha-input {
    padding-left: 18px;
}

.form-control:focus {
    outline: none;
    border-color: rgba(79, 195, 247, 0.85);
    background-color: rgba(255, 255, 255, 0.11);
    box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.16);
}

.form-control::placeholder { color: rgba(255, 255, 255, 0.4); }

.form-control[readonly] {
    background: rgba(255, 213, 79, 0.12);
    border-color: rgba(255, 213, 79, 0.35);
    color: #ffe082;
    font-weight: 600;
    cursor: default;
}

.login-captcha {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.login-captcha-image {
    display: block;
    flex: 0 0 65%;
    width: 65%;
    max-width: 65%;
    height: 50px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: #fffdf7;
    cursor: pointer;
    object-fit: contain;
    box-sizing: border-box;
}

.login-captcha .captcha-input {
    flex: 0 0 35%;
    width: 35%;
    max-width: 35%;
    min-width: 0;
    box-sizing: border-box;
}

.form-actions {
    padding: 6px 0 0;
    margin: 0;
}

.login-submit {
    display: block;
    width: 100%;
    height: 50px;
    margin-top: 4px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, var(--sky) 0%, var(--sky-deep) 100%);
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(2, 119, 189, 0.38);
    transition: filter 0.2s ease, transform 0.2s ease;
}

.login-submit:hover,
.login-submit:focus {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.login-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    margin-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.login-hint {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 0;
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
    line-height: 1.5;
}

.login-hint i {
    margin-top: 2px;
    color: rgba(79, 195, 247, 0.75);
}

.login-credits {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-credits-line {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

.login-credits-line a {
    color: #ffe082 !important;
    text-decoration: none;
}

.login-credits-line a:hover {
    text-decoration: underline;
}

.login-credits-line .dot {
    margin: 0 6px;
    color: rgba(255, 255, 255, 0.3);
}

.login-copyright {
    margin: 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.38);
    text-align: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1400px) {
    .login-brandpane-inner { padding: 30px 34px; gap: 16px; }
    .program-title { font-size: 32px; }
}

/* Laptop: keep all three feature lines visible; narrow the hero so they fit */
@media (min-width: 1151px) and (max-width: 1600px) {
    .login-brandpane-inner { padding: 22px 28px; gap: 12px; }
    .program-title { font-size: 28px; }
    .program-body { gap: 14px; }
    .hero-photo {
        flex: 0 0 26%;
        max-width: 168px;
        height: auto;
    }
    .feature-list { gap: 7px; }
    .feature-list li { font-size: 12.5px; }
    .pcard { padding: 26px 14px 12px; }
}

@media (min-width: 1151px) and (max-height: 820px) {
    .login-brandpane { min-height: 0; overflow: hidden; }
    .login-brandpane-inner {
        padding: 16px 24px;
        gap: 10px;
        overflow-y: auto;
    }
    .program-copy { font-size: 13px; line-height: 1.45; }
    .hero-photo {
        flex-basis: 24%;
        max-width: 148px;
        height: auto;
    }
    .stat { padding: 8px; }
    .pcard { padding: 24px 12px 10px; }
}

@media (max-width: 1150px) {
    .login { flex-direction: column; }

    /* Stacked layout: the sign-in card comes first so it owns the opening screen.
       The program/partner panel follows underneath for anyone who scrolls. */
    .login-inner {
        order: -1;
        flex: 0 0 auto;
        width: 100%;
        min-height: 88vh;
        padding: 30px 24px 36px;
        box-shadow: 0 22px 55px rgba(0, 0, 0, 0.5);
        border-top: none;
    }

    .login-brandpane {
        order: 0;
        flex: 0 0 auto;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .login-brandpane-inner { max-width: 940px; padding: 28px 26px; }

    .login .content.login-card {
        width: 100%;
        max-width: 460px;
        border-color: rgba(255, 255, 255, 0.18);
    }
}

@media (max-width: 860px) {
    .partner-cards { flex-direction: column; }
    .pcard + .pcard { margin-left: 0; margin-top: 14px; }
}

@media (max-width: 760px) {
    .login-brandpane-inner { padding: 22px 16px; gap: 15px; }
    .program-title { font-size: 27px; }
    .program-sub { font-size: 12.5px; }
    .program-copy { font-size: 13px; }
    .pcard { padding: 28px 15px 15px; }
    .pcard-logo-acer { height: 46px; }
    .pcard-logo-sipl { height: 48px; }
    .login-inner { padding: 22px 16px 28px; }
    .login .content.login-card { padding: 24px 18px 20px; }
    .login-captcha {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
    .login-captcha-image {
        flex: 0 0 65%;
        width: 65%;
        max-width: 65%;
        height: 42px;
    }
    .login-captcha .captcha-input {
        flex: 0 0 35%;
        width: 35%;
        max-width: 35%;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .gov-strip-line1 { font-size: 11px; letter-spacing: 0.1em; }
    .gov-strip-line2 { font-size: 10.5px; }
    .program-emblem { width: 46px; }
    .stat-value { font-size: 20px; }
    .login-heading { font-size: 23px; }
    .pcard-name { font-size: 14px; }
    .pcard-tag { white-space: normal; }
    .pcard-contact li { font-size: 12px; }
}
