
/* ==========================================================
   RKMSM STUDENT PORTAL LOGIN
   Dedicated visual theme. No CMS/database content changed.
   ========================================================== */

:root {
    --sp-navy: #071d49;
    --sp-navy-2: #0c2d66;
    --sp-blue: #174a91;
    --sp-gold: #d9a441;
    --sp-gold-dark: #b9811e;
    --sp-cream: #fbf8f1;
    --sp-text: #24324a;
    --sp-muted: #68758a;
    --sp-border: #e4e8ef;
    --sp-white: #ffffff;
    --sp-danger: #b42318;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: #f4f6fa;
    color: var(--sp-text);
    font-family: "Poppins", sans-serif;
}

.student-login-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 15%, rgba(217,164,65,.10), transparent 28%),
        radial-gradient(circle at 90% 25%, rgba(23,74,145,.10), transparent 30%),
        #f4f6fa;
}

.student-login-container {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

/* Header */
.student-login-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--sp-navy), var(--sp-navy-2));
    padding: 34px 0;
}

.student-login-hero:after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 50%;
    right: -120px;
    top: -220px;
}

.student-login-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 22px;
}

.student-login-emblem {
    width: 92px;
    height: 92px;
    flex: 0 0 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.98);
    border: 4px solid rgba(217,164,65,.75);
    border-radius: 50%;
    box-shadow: 0 12px 30px rgba(0,0,0,.20);
}

.student-login-emblem img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.student-login-kicker {
    color: #e5c47e;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.8px;
    margin-bottom: 4px;
}

.student-login-brand-copy h1 {
    margin: 0;
    color: #fff;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.15;
}

.student-login-brand-copy p {
    margin: 7px 0 0;
    color: rgba(255,255,255,.78);
    font-size: 14px;
}

/* Portal heading */
.student-login-heading {
    background: #fff;
    border-bottom: 1px solid var(--sp-border);
}

.student-login-heading-inner {
    min-height: 104px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    text-align: center;
}

.student-login-heading-line {
    width: 54px;
    height: 2px;
    background: var(--sp-gold);
}

.student-login-heading-kicker {
    display: block;
    color: var(--sp-gold-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.3px;
    margin-bottom: 3px;
}

.student-login-heading h2 {
    margin: 0;
    color: var(--sp-navy);
    font-size: 26px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Main */
.student-login-main {
    padding: 48px 0 58px;
}

.student-login-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, .75fr);
    gap: 38px;
    align-items: start;
}

.student-login-information,
.student-login-card {
    background: #fff;
    border: 1px solid var(--sp-border);
    border-radius: 18px;
    box-shadow: 0 14px 38px rgba(7,29,73,.07);
}

.student-login-information {
    padding: 34px 38px;
}

.student-login-section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--sp-navy);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding-bottom: 18px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--sp-border);
}

.student-login-section-label span {
    width: 7px;
    height: 25px;
    display: inline-block;
    border-radius: 4px;
    background: var(--sp-gold);
}

/* CMS content from page_content is preserved; these rules only restyle it */
.student-login-cms {
    color: var(--sp-text);
    font-size: 15px;
    line-height: 1.75;
}

.student-login-cms > *:first-child {
    margin-top: 0 !important;
}

.student-login-cms h2 {
    margin: 28px 0 10px !important;
    padding: 0 !important;
    color: var(--sp-navy) !important;
    font-family: "Poppins", sans-serif !important;
    font-size: 21px !important;
    line-height: 1.45 !important;
    text-align: left !important;
    font-weight: 700 !important;
    border-left: 4px solid var(--sp-gold);
    padding-left: 14px !important;
}

.student-login-cms h4 {
    margin: 8px 0 16px !important;
    color: #a33a2b !important;
    font-family: "Poppins", sans-serif !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    text-align: left !important;
    font-weight: 600 !important;
}

.student-login-cms div {
    margin: 5px 0;
}

.student-login-cms strong,
.student-login-cms b {
    font-family: "Poppins", sans-serif !important;
}

.student-login-cms strong[style],
.student-login-cms b[style] {
    font-size: inherit !important;
}

.student-login-cms font {
    color: inherit !important;
    font-family: "Poppins", sans-serif !important;
}

.student-login-cms font[color="#9c00ff"],
.student-login-cms font[color="#006400"],
.student-login-cms font[color="#ff0000"] {
    color: inherit !important;
}

.student-login-cms i {
    color: var(--sp-blue) !important;
    font-style: normal !important;
    font-weight: 600;
}

.student-login-cms h2 u {
    text-decoration: none !important;
}

.student-login-cms p:empty {
    display: none;
}

.student-login-cms br {
    line-height: 1.4;
}

/* Login card */
.student-login-card {
    padding: 32px;
    position: sticky;
    top: 20px;
    overflow: hidden;
}

.student-login-card:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--sp-gold), #f0cf82, var(--sp-gold));
}

.student-login-card-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--sp-navy);
    background: #f9f1df;
    border: 1px solid #ead5a4;
    border-radius: 14px;
    font-size: 21px;
}

.student-login-card-heading > span {
    color: var(--sp-gold-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.student-login-card-heading h3 {
    margin: 5px 0 7px;
    color: var(--sp-navy);
    font-size: 23px;
    font-weight: 700;
}

.student-login-card-heading p {
    margin: 0 0 25px;
    color: var(--sp-muted);
    font-size: 13px;
    line-height: 1.65;
}

.student-login-errors {
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid #f2c7c3;
    border-radius: 10px;
    background: #fff5f4;
    color: var(--sp-danger);
    font-size: 12px;
}

.student-login-error-title {
    font-weight: 700;
    margin-bottom: 7px;
}

.student-login-errors ul {
    margin: 0;
    padding-left: 18px;
}

.student-login-field {
    margin-bottom: 18px;
}

.student-login-field label {
    display: block;
    margin-bottom: 7px;
    color: #344054;
    font-size: 12px;
    font-weight: 700;
}

.student-login-input-wrap {
    position: relative;
}

.student-login-input-wrap > i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #8491a5;
    font-size: 15px;
    z-index: 2;
}

.student-login-input-wrap input {
    width: 100%;
    height: 52px;
    box-sizing: border-box;
    padding: 0 15px 0 44px;
    border: 1px solid #d8dee8;
    border-radius: 10px;
    background: #fbfcfe;
    color: #1f2937;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.student-login-input-wrap input:focus {
    background: #fff;
    border-color: var(--sp-blue);
    box-shadow: 0 0 0 4px rgba(23,74,145,.10);
}

.student-login-input-wrap input::placeholder {
    color: #9aa5b5;
}

.student-login-submit {
    width: 100%;
    min-height: 52px;
    margin-top: 4px;
    padding: 12px 18px;
    border: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--sp-navy), var(--sp-blue));
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .7px;
    cursor: pointer;
    box-shadow: 0 9px 22px rgba(7,29,73,.20);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.student-login-submit:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(7,29,73,.26);
    background: linear-gradient(135deg, #0a2861, #1d5aa9);
}

.student-login-submit i {
    color: #f0cf82;
}

.student-login-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 21px;
    padding-top: 17px;
    border-top: 1px solid var(--sp-border);
    color: #7a8799;
    font-size: 10px;
    line-height: 1.5;
}

.student-login-card-footer i {
    color: var(--sp-gold-dark);
}

/* Footer */
.student-login-footer {
    background: var(--sp-navy);
    color: rgba(255,255,255,.68);
}

.student-login-footer-inner {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    font-size: 11px;
}

.student-login-footer-inner span:first-child {
    color: #fff;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 991px) {
    .student-login-grid {
        grid-template-columns: 1fr;
    }

    .student-login-card {
        position: relative;
        top: auto;
    }
}

@media (max-width: 600px) {
    .student-login-container {
        width: min(100% - 24px, 1180px);
    }

    .student-login-hero {
        padding: 24px 0;
    }

    .student-login-brand {
        gap: 14px;
    }

    .student-login-emblem {
        width: 70px;
        height: 70px;
        flex-basis: 70px;
        border-width: 3px;
    }

    .student-login-emblem img {
        width: 53px;
        height: 53px;
    }

    .student-login-brand-copy h1 {
        font-size: 24px;
    }

    .student-login-kicker {
        font-size: 9px;
        letter-spacing: 2px;
    }

    .student-login-brand-copy p {
        font-size: 11px;
    }

    .student-login-heading-inner {
        min-height: 86px;
    }

    .student-login-heading-line {
        width: 24px;
    }

    .student-login-heading h2 {
        font-size: 19px;
    }

    .student-login-heading-kicker {
        font-size: 9px;
    }

    .student-login-main {
        padding: 24px 0 34px;
    }

    .student-login-information {
        padding: 24px 20px;
        border-radius: 14px;
    }

    .student-login-cms h2 {
        font-size: 18px !important;
    }

    .student-login-cms h4 {
        font-size: 12px !important;
    }

    .student-login-cms {
        font-size: 13px;
    }

    .student-login-card {
        padding: 24px 20px;
        border-radius: 14px;
    }

    .student-login-card-heading h3 {
        font-size: 20px;
    }

    .student-login-footer-inner {
        padding: 14px 0;
        flex-direction: column;
        align-items: flex-start;
        font-size: 10px;
    }
}
