/* =========================================================
   INTERBANK
   Authentication + Administration Interface
   ========================================================= */


/* ---------- RESET ---------- */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: #f2f0e9;
    color: #111111;
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}


/* =========================================================
   AUTHENTICATION PAGES
   ========================================================= */

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(340px, 0.9fr) minmax(500px, 1.1fr);
}


/* ---------- LEFT PANEL ---------- */

.auth-brand-panel {
    min-height: 100vh;
    padding: 42px 55px 55px;
    background: #0b0b0b;
    color: #f2f0e9;
    display: flex;
    flex-direction: column;
}

.auth-brand {
    display: inline-block;
    width: fit-content;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.auth-brand:hover {
    opacity: 0.7;
}

.auth-brand-content {
    margin: auto 0;
    max-width: 620px;
    padding: 80px 0;
}

.auth-eyebrow {
    margin-bottom: 26px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.62;
}

.auth-brand-content h1 {
    max-width: 560px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(4rem, 7vw, 7.4rem);
    font-weight: 400;
    line-height: 0.91;
    letter-spacing: -0.06em;
}

.auth-brand-copy {
    max-width: 520px;
    margin-top: 34px;
    color: rgba(242, 240, 233, 0.68);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    line-height: 1.75;
}

.auth-brand-footer {
    padding-top: 25px;
    border-top: 1px solid rgba(242, 240, 233, 0.16);
    color: rgba(242, 240, 233, 0.48);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}


/* ---------- RIGHT PANEL ---------- */

.auth-form-panel {
    min-height: 100vh;
    padding: 70px clamp(45px, 7vw, 120px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-form-wrap {
    width: 100%;
    max-width: 620px;
}

.auth-section-label {
    margin-bottom: 20px;
    color: #6e6c65;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.auth-form-wrap h2 {
    margin-bottom: 20px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.2rem, 5vw, 5.8rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.055em;
}

.auth-intro {
    max-width: 520px;
    margin-bottom: 48px;
    color: #5d5b55;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    line-height: 1.7;
}


/* ---------- FORM ---------- */

.auth-form {
    width: 100%;
}

.form-group {
    margin-bottom: 26px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #292824;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid #bcb9b0;
    border-radius: 0;
    outline: none;
    background: transparent;
    color: #111111;
    transition:
        border-color 160ms ease,
        background 160ms ease;
}

.form-group input,
.form-group select {
    min-height: 54px;
    padding: 0 16px;
}

.form-group textarea {
    min-height: 130px;
    padding: 15px 16px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #111111;
    background: rgba(255, 255, 255, 0.4);
}

.form-group input[readonly] {
    background: rgba(0, 0, 0, 0.035);
    color: #66635c;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #929087;
}


/* ---------- BUTTONS ---------- */

.auth-submit,
.primary-button {
    width: 100%;
    min-height: 56px;
    border: 1px solid #111111;
    background: #111111;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition:
        background 180ms ease,
        color 180ms ease;
}

.auth-submit:hover,
.primary-button:hover {
    background: transparent;
    color: #111111;
}

.secondary-button {
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid #111111;
    background: transparent;
    color: #111111;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition:
        background 180ms ease,
        color 180ms ease;
}

.secondary-button:hover {
    background: #111111;
    color: #ffffff;
}


/* ---------- AUTH FOOTER LINK ---------- */

.auth-alternate {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid #cbc8bf;
    color: #6c6961;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.95rem;
}

.auth-alternate a {
    color: #111111;
    border-bottom: 1px solid #111111;
    padding-bottom: 2px;
}

.auth-alternate a:hover {
    opacity: 0.6;
}


/* ---------- MESSAGES ---------- */

.auth-message,
.form-message {
    display: none;
    margin-bottom: 24px;
    padding: 15px 17px;
    border: 1px solid #bcb9b0;
    font-size: 0.82rem;
    line-height: 1.55;
}

.auth-message.show,
.form-message.show {
    display: block;
}

.auth-message.error,
.form-message.error {
    border-color: #8d2929;
    color: #761d1d;
}

.auth-message.success,
.form-message.success {
    border-color: #3d6645;
    color: #315438;
}


/* =========================================================
   REGISTRATION
   ========================================================= */

.registration-page .auth-form-panel {
    align-items: flex-start;
}

.registration-page .auth-form-wrap {
    max-width: 760px;
    padding: 50px 0 80px;
}

.registration-step {
    width: 100%;
}

.registration-step[hidden] {
    display: none;
}

.invitation-summary {
    margin: 30px 0;
    padding: 25px 0;
    border-top: 1px solid #aaa79f;
    border-bottom: 1px solid #aaa79f;
}

.invitation-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 9px 0;
}

.invitation-summary-label {
    color: #747168;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.invitation-summary-value {
    text-align: right;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
}

.registration-heading {
    margin: 48px 0 26px;
    padding-top: 35px;
    border-top: 1px solid #cbc8bf;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: -0.025em;
}

.payment-section {
    margin-top: 45px;
    padding-top: 35px;
    border-top: 1px solid #aaa79f;
}

.payment-section h3 {
    margin-bottom: 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 400;
}

.payment-section p {
    margin-bottom: 25px;
    color: #69665f;
    line-height: 1.65;
}

#card-container {
    min-height: 90px;
    margin-bottom: 22px;
}


/* =========================================================
   ADMIN
   ========================================================= */

.admin-page {
    min-height: 100vh;
    background: #f2f0e9;
}

.admin-header {
    min-height: 82px;
    padding: 0 clamp(25px, 5vw, 70px);
    border-bottom: 1px solid #c8c5bc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.admin-brand {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.admin-role {
    color: #737068;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.admin-logout {
    border: 0;
    border-bottom: 1px solid #111111;
    background: none;
    color: #111111;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.admin-main {
    width: min(1500px, calc(100% - 70px));
    margin: 0 auto;
    padding: 80px 0 120px;
}

.admin-eyebrow {
    margin-bottom: 18px;
    color: #77746d;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.admin-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 65px;
}

.admin-title-row h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.8rem, 7vw, 7.5rem);
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: -0.06em;
}

.admin-title-copy {
    max-width: 520px;
    color: #66635c;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    line-height: 1.65;
}


/* ---------- ADMIN SUMMARY ---------- */

.admin-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 65px;
    border-top: 1px solid #aaa79f;
    border-bottom: 1px solid #aaa79f;
}

.admin-stat {
    min-height: 150px;
    padding: 28px 25px;
    border-right: 1px solid #aaa79f;
}

.admin-stat:last-child {
    border-right: 0;
}

.admin-stat-label {
    display: block;
    margin-bottom: 25px;
    color: #77746d;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.admin-stat-value {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: -0.04em;
}


/* ---------- ADMIN TABLE ---------- */

.admin-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-top: 1px solid #111111;
}

.admin-table {
    width: 100%;
    min-width: 1100px;
    border-collapse: collapse;
}

.admin-table th {
    padding: 18px 14px;
    border-bottom: 1px solid #aaa79f;
    color: #747168;
    text-align: left;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admin-table td {
    padding: 26px 14px;
    border-bottom: 1px solid #cbc8bf;
    vertical-align: top;
}

.admin-student-name {
    margin-bottom: 5px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
}

.admin-student-meta {
    color: #77746d;
    font-size: 0.75rem;
    line-height: 1.5;
}

.admin-billing {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.95rem;
}

.admin-status {
    display: inline-block;
    margin-top: 7px;
    padding: 5px 8px;
    border: 1px solid #aaa79f;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.admin-progress-position {
    max-width: 240px;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.45;
}

.admin-control-grid {
    display: grid;
    gap: 9px;
    min-width: 300px;
}

.admin-control-grid select,
.admin-control-grid input,
.admin-control-grid textarea {
    width: 100%;
    border: 1px solid #aaa79f;
    border-radius: 0;
    outline: none;
    background: transparent;
    color: #111111;
}

.admin-control-grid select,
.admin-control-grid input {
    min-height: 42px;
    padding: 0 10px;
}

.admin-control-grid textarea {
    min-height: 70px;
    padding: 10px;
    resize: vertical;
}

.admin-control-grid select:focus,
.admin-control-grid input:focus,
.admin-control-grid textarea:focus {
    border-color: #111111;
}

.admin-save-button {
    min-height: 42px;
    border: 1px solid #111111;
    background: #111111;
    color: #ffffff;
    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.admin-save-button:hover {
    background: transparent;
    color: #111111;
}

.admin-empty {
    padding: 70px 20px;
    border-bottom: 1px solid #aaa79f;
    color: #716e67;
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.1rem;
}


/* ---------- LOADING ---------- */

.admin-loading {
    padding: 60px 0;
    color: #77746d;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {
    .auth-page {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        min-height: auto;
        padding: 35px 35px 55px;
    }

    .auth-brand-content {
        margin: 90px 0 30px;
        padding: 0;
    }

    .auth-brand-content h1 {
        max-width: 650px;
        font-size: clamp(4rem, 11vw, 7rem);
    }

    .auth-form-panel {
        min-height: auto;
        padding: 80px 35px 100px;
        justify-content: flex-start;
    }

    .auth-form-wrap {
        max-width: 700px;
    }

    .admin-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-stat:nth-child(2) {
        border-right: 0;
    }

    .admin-stat:nth-child(-n + 2) {
        border-bottom: 1px solid #aaa79f;
    }

    .admin-title-row {
        display: block;
    }

    .admin-title-copy {
        margin-top: 28px;
    }
}


@media (max-width: 700px) {
    .auth-brand-panel {
        padding: 28px 22px 40px;
    }

    .auth-brand-content {
        margin-top: 70px;
    }

    .auth-brand-content h1 {
        font-size: clamp(3.6rem, 17vw, 5.5rem);
    }

    .auth-form-panel {
        padding: 65px 22px 85px;
    }

    .auth-form-wrap h2 {
        font-size: clamp(3rem, 14vw, 4.5rem);
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .registration-page .auth-form-wrap {
        padding: 15px 0 40px;
    }

    .invitation-summary-row {
        display: block;
    }

    .invitation-summary-value {
        margin-top: 6px;
        text-align: left;
    }

    .admin-header {
        min-height: 74px;
        padding: 0 20px;
    }

    .admin-role {
        display: none;
    }

    .admin-main {
        width: calc(100% - 40px);
        padding: 60px 0 90px;
    }

    .admin-title-row {
        margin-bottom: 45px;
    }

    .admin-title-row h1 {
        font-size: clamp(3.5rem, 17vw, 5.5rem);
    }

    .admin-summary {
        grid-template-columns: 1fr;
    }

    .admin-stat {
        min-height: 120px;
        border-right: 0;
        border-bottom: 1px solid #aaa79f;
    }

    .admin-stat:last-child {
        border-bottom: 0;
    }
}