:root {
    --student-green: #07845e;
    --student-dark: #063c2d;
    --student-ink: #17251f;
    --student-muted: #708078;
    --student-border: #dce8e2;
    --student-bg: #f3f7f5;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--student-ink);
    background: var(--student-bg);
    font-family: "DM Sans", sans-serif;
}

.student-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 280px minmax(0, 1fr);
}

.student-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    height: 100vh;
    flex-direction: column;
    padding: 25px 18px;
    color: #fff;
    background: var(--student-dark);
}

.student-brand,
.student-login-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: inherit;
    text-decoration: none;
}

.student-brand > span,
.student-login-brand > span {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #fff;
    background: var(--student-green);
    font-weight: 800;
    font-size: 19px;
}

.student-brand strong,
.student-brand small,
.student-login-brand strong,
.student-login-brand small {
    display: block;
}

.student-brand small {
    color: rgba(255,255,255,.62);
}

.student-sidebar nav {
    display: grid;
    gap: 7px;
    margin-top: 40px;
}

.student-sidebar nav a,
.student-logout button {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: rgba(255,255,255,.75);
    border: 0;
    border-radius: 11px;
    background: transparent;
    text-decoration: none;
}

.student-sidebar nav a.active {
    color: #fff;
    background: rgba(255,255,255,.12);
    box-shadow: inset 4px 0 var(--student-green);
}

.student-logout {
    margin-top: auto;
}

.student-logout button {
    width: 100%;
}

.student-header {
    display: flex;
    min-height: 102px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 38px;
    border-bottom: 1px solid var(--student-border);
    background: #fff;
}

.student-header > div:first-child small {
    color: var(--student-green);
    font-size: 10px;
    font-weight: 700;
}

.student-header h1 {
    margin: 4px 0 0;
    font-family: "Manrope", sans-serif;
    font-size: 26px;
}

.student-profile {
    display: flex;
    align-items: center;
    gap: 11px;
}

.student-profile > span {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    background: var(--student-green);
    font-weight: 800;
}

.student-profile strong,
.student-profile small {
    display: block;
}

.student-profile small {
    color: var(--student-muted);
}

.student-content {
    padding: 32px 38px;
}

.student-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px;
    color: #fff;
    border-radius: 20px;
    background: linear-gradient(135deg, #056148, #07966c);
}

.student-welcome span,
.student-welcome p {
    color: rgba(255,255,255,.75);
}

.student-welcome h2 {
    margin: 6px 0;
    color: #fff;
}

.student-welcome > i {
    font-size: 62px;
    opacity: .22;
}

.student-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.student-stat-grid article {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 19px;
    border: 1px solid var(--student-border);
    border-radius: 15px;
    background: #fff;
}

.student-stat-grid article > span {
    width: 46px;
    height: 46px;
    display: grid;
    flex: 0 0 46px;
    place-items: center;
    border-radius: 12px;
}

.student-stat-grid .green {
    color: #07845e;
    background: #e6f7f0;
}

.student-stat-grid .blue {
    color: #1769c7;
    background: #edf5ff;
}

.student-stat-grid .orange {
    color: #a96b16;
    background: #fff3df;
}

.student-stat-grid strong,
.student-stat-grid small {
    display: block;
}

.student-stat-grid strong {
    font-size: 18px;
}

.student-stat-grid small {
    color: var(--student-muted);
}

.student-card {
    padding: 24px;
    border: 1px solid var(--student-border);
    border-radius: 18px;
    background: #fff;
}

.student-card-header span,
.student-section-label,
.student-page-heading span,
.student-plan > span {
    color: var(--student-green);
    font-size: 11px;
    font-weight: 700;
}

.student-card-header h3 {
    margin: 5px 0 20px;
}

.student-course {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid var(--student-border);
}

.student-course-main {
    display: flex;
    align-items: center;
    gap: 14px;
}

.student-course-icon {
    width: 51px;
    height: 51px;
    display: grid;
    flex: 0 0 51px;
    place-items: center;
    border-radius: 13px;
    color: var(--student-green);
    background: #e9f7f1;
}

.student-course h4,
.student-course p {
    margin: 3px 0;
}

.student-course small,
.student-course p {
    color: var(--student-muted);
}

.student-course-fee {
    text-align: right;
}

.student-course-fee small,
.student-course-fee strong {
    display: block;
}

.student-course-fee strong {
    margin: 4px 0 7px;
}

.student-course-fee a {
    color: var(--student-green);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.student-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.student-page-heading h2 {
    margin: 6px 0;
}

.student-status {
    padding: 8px 13px;
    border-radius: 999px;
    background: #fff0db;
}

.student-status.paid {
    background: #e2f6ee;
}

.student-invoice-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 20px;
}

.student-invoice-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.student-invoice-summary > div {
    padding: 16px;
    border-radius: 13px;
    background: #f5f9f7;
}

.student-invoice-summary small,
.student-invoice-summary strong {
    display: block;
}

.student-invoice-summary small {
    color: var(--student-muted);
}

.student-invoice-summary strong {
    margin-top: 7px;
    font-size: 18px;
}

.student-invoice-summary .balance {
    color: #a96b16;
}

.student-plan {
    margin-top: 25px;
}

.student-plan-option {
    display: block;
    margin: 13px 0;
    cursor: pointer;
}

.student-plan-option input {
    position: absolute;
    opacity: 0;
}

.student-plan-option > span {
    display: block;
    padding: 18px;
    border: 1px solid var(--student-border);
    border-radius: 14px;
}

.student-plan-option input:checked + span {
    border-color: var(--student-green);
    background: #eef9f5;
    box-shadow: 0 0 0 3px rgba(7,132,94,.1);
}

.student-plan-option i {
    margin-right: 8px;
    color: var(--student-green);
}

.student-plan-option strong,
.student-plan-option small {
    display: block;
}

.student-plan-option small {
    margin: 7px 0 0 27px;
    color: var(--student-muted);
}

.student-primary-button {
    width: 100%;
    min-height: 50px;
    margin-top: 10px;
    color: #fff;
    border: 0;
    border-radius: 12px;
    background: var(--student-green);
    font-weight: 700;
}

.student-details div {
    padding: 13px 0;
    border-bottom: 1px solid var(--student-border);
}

.student-details dt {
    color: var(--student-muted);
    font-size: 11px;
}

.student-details dd {
    margin: 4px 0 0;
}

.student-payment-coming {
    display: flex;
    gap: 13px;
    margin-top: 23px;
    padding: 17px;
    border: 1px dashed #b5d9ca;
    border-radius: 14px;
    background: #f2faf7;
}

.student-payment-coming i {
    color: var(--student-green);
    font-size: 27px;
}

.student-payment-coming p {
    margin: 4px 0 0;
    color: var(--student-muted);
}

.student-empty {
    padding: 55px 20px;
    text-align: center;
}

.student-login {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(0, 1.1fr) minmax(430px, .9fr);
}

.student-login-info {
    display: flex;
    align-items: flex-end;
    padding: 70px;
    color: #fff;
    background:
        linear-gradient(rgba(3,52,39,.45), rgba(3,52,39,.85)),
        url("https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=1600&q=85")
        center/cover;
}

.student-login-info > div {
    max-width: 690px;
}

.student-login-info h1 {
    margin: 22px 0 14px;
    font-family: "Manrope", sans-serif;
    font-size: clamp(38px, 5vw, 66px);
    line-height: 1.06;
}

.student-login-info p {
    color: rgba(255,255,255,.8);
    font-size: 16px;
}

.student-login-label {
    padding: 8px 13px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 999px;
    background: rgba(255,255,255,.12);
}

.student-login-form-area {
    display: grid;
    place-items: center;
    padding: 45px;
    background: #fff;
}

.student-login-card {
    width: min(100%, 430px);
}

.student-login-brand {
    color: var(--student-ink);
}

.student-login-brand small {
    display: block;
    color: var(--student-muted);
}

.student-login-heading {
    margin: 45px 0 25px;
}

.student-login-heading > span {
    color: var(--student-green);
    font-size: 11px;
    font-weight: 700;
}

.student-login-heading h2 {
    margin: 7px 0;
}

.student-login-heading p,
.student-login-help {
    color: var(--student-muted);
}

.student-login-card > label {
    display: block;
    margin: 17px 0 7px;
    font-size: 12px;
    font-weight: 700;
}

.student-input {
    display: flex;
    min-height: 52px;
    align-items: center;
    gap: 10px;
    padding: 0 15px;
    border: 1px solid var(--student-border);
    border-radius: 12px;
}

.student-input:focus-within {
    border-color: var(--student-green);
    box-shadow: 0 0 0 4px rgba(7,132,94,.1);
}

.student-input i {
    color: var(--student-green);
}

.student-input input {
    width: 100%;
    border: 0;
    outline: 0;
}

.student-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 17px 0;
    font-size: 12px;
}

.student-login-button {
    width: 100%;
    min-height: 52px;
    color: #fff;
    border: 0;
    border-radius: 12px;
    background: var(--student-green);
    font-weight: 700;
}

.student-login-error {
    padding: 13px;
    color: #942f3e;
    border-radius: 10px;
    background: #fff0f2;
}

.student-login-help {
    margin-top: 17px;
    font-size: 11px;
    text-align: center;
}

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

    .student-login-info {
        display: none;
    }

    .student-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .student-invoice-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .student-shell {
        display: block;
    }

    .student-sidebar {
        position: static;
        width: 100%;
        height: auto;
    }

    .student-sidebar nav {
        grid-template-columns: repeat(3, 1fr);
        margin-top: 20px;
    }

    .student-sidebar nav a {
        justify-content: center;
    }

    .student-logout {
        margin-top: 12px;
    }

    .student-header,
    .student-content {
        padding: 20px 17px;
    }

    .student-profile div {
        display: none;
    }

    .student-stat-grid,
    .student-invoice-summary {
        grid-template-columns: 1fr;
    }

    .student-course {
        align-items: flex-start;
        flex-direction: column;
    }

    .student-course-fee {
        width: 100%;
        text-align: left;
    }

    .student-login-form-area {
        padding: 28px 20px;
    }
}

/* IntouchPay tuition payment interface */
.tuition-payment-section,
.tuition-history {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--student-border);
}

.tuition-payment-heading > span {
    color: var(--student-green);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
}

.tuition-payment-heading h3 {
    margin: 6px 0;
}

.tuition-payment-heading p {
    margin: 0 0 18px;
    color: var(--student-muted);
}

.tuition-instalment-card {
    margin-top: 16px;
    padding: 19px;
    border: 1px solid var(--student-border);
    border-radius: 15px;
    background: #fbfdfc;
}

.tuition-instalment-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.tuition-instalment-summary div > span,
.tuition-instalment-summary strong,
.tuition-instalment-summary small {
    display: block;
}

.tuition-instalment-summary div > span,
.tuition-instalment-summary small {
    color: var(--student-muted);
}

.tuition-instalment-summary strong {
    margin: 5px 0;
    font-size: 22px;
}

.tuition-payment-status {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    color: #7a5410;
    background: #fff0d6;
    font-size: 10px;
    font-weight: 700;
}

.tuition-payment-status.paid {
    color: #086447;
    background: #e1f6ed;
}

.tuition-payment-status.pending,
.tuition-payment-status.requesting {
    color: #1760a8;
    background: #e9f3ff;
}

.tuition-payment-status.failed,
.tuition-payment-status.cancelled {
    color: #963244;
    background: #ffedf0;
}

.tuition-payment-form {
    margin-top: 18px;
}

.tuition-payment-form label {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 700;
}

.tuition-phone-input {
    display: flex;
    min-height: 51px;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid #cbdcd4;
    border-radius: 12px;
    background: #fff;
}

.tuition-phone-input:focus-within {
    border-color: var(--student-green);
    box-shadow: 0 0 0 4px rgba(7,132,94,.1);
}

.tuition-phone-input i {
    color: var(--student-green);
}

.tuition-phone-input input {
    width: 100%;
    border: 0;
    outline: 0;
}

.tuition-payment-help {
    display: block;
    margin-top: 8px;
    color: var(--student-muted);
}

.tuition-pay-button,
.tuition-check-button {
    width: 100%;
    min-height: 49px;
    margin-top: 14px;
    border-radius: 11px;
    font-weight: 700;
}

.tuition-pay-button {
    color: #fff;
    border: 0;
    background: var(--student-green);
}

.tuition-pay-button:hover {
    background: #056b4d;
}

.tuition-check-button {
    color: #075d42;
    border: 1px solid #a9d8c5;
    background: #edf9f4;
}

.tuition-pending-payment {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 17px;
    padding: 14px;
    border: 1px dashed #94bfe8;
    border-radius: 12px;
    color: #155e9e;
    background: #eef6ff;
}

.tuition-pending-payment strong,
.tuition-pending-payment small {
    display: block;
}

.tuition-pending-payment small {
    margin-top: 4px;
}

.tuition-paid-message {
    margin-top: 16px;
    padding: 13px;
    color: #086447;
    border-radius: 11px;
    background: #e7f7f0;
}

.tuition-small-check {
    padding: 5px 9px;
    color: #075d42;
    border: 1px solid #abd7c5;
    border-radius: 7px;
    background: #eef8f4;
    font-size: 11px;
}

@media (max-width: 600px) {
    .tuition-instalment-summary {
        flex-direction: column;
    }
}

.portal-account-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 20px;
}

.portal-account-types span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 5px;
    color: #607068;
    border: 1px solid #dce8e2;
    border-radius: 9px;
    background: #f7faf8;
    font-size: 10px;
}

.portal-language-switcher {
    margin-left: auto;
    margin-right: 12px;
}

.portal-language-switcher .btn {
    min-height: 40px;
    color: #075d42;
    border: 1px solid #d8e7e0;
    border-radius: 10px;
    background: #f5faf7;
    font-size: 12px;
    font-weight: 700;
}
