
/* ============================================================
   ELEATION TIP
   FORM / STUDENT JOURNEY DESIGN SYSTEM
   ============================================================ */

:root {

    --tip-navy-950: #061426;
    --tip-navy-900: #081d36;
    --tip-navy-850: #0a2748;
    --tip-navy-800: #0d315b;

    --tip-blue-700: #0f5fa8;
    --tip-blue-600: #1778c2;
    --tip-blue-100: #eaf4fb;
    --tip-blue-50: #f4f9fd;

    --tip-orange-700: #db5a13;
    --tip-orange-600: #f36f21;
    --tip-orange-100: #fff1e8;

    --tip-green-700: #08785a;
    --tip-green-100: #eaf8f3;

    --tip-red-700: #b42318;
    --tip-red-100: #fef3f2;

    --tip-yellow-700: #8a5b00;
    --tip-yellow-100: #fff8df;

    --tip-text: #172133;
    --tip-text-soft: #34445a;
    --tip-muted: #66758a;
    --tip-muted-light: #8a97a8;

    --tip-white: #ffffff;
    --tip-page: #f4f7fb;
    --tip-soft: #f7f9fc;

    --tip-border: #e1e7ef;
    --tip-border-strong: #c8d4e1;

    --tip-shadow-xs:
        0 4px 14px rgba(9, 30, 57, 0.045);

    --tip-shadow-sm:
        0 10px 28px rgba(9, 30, 57, 0.07);

    --tip-shadow:
        0 20px 55px rgba(9, 30, 57, 0.11);

    --tip-radius-sm: 10px;
    --tip-radius: 16px;
    --tip-radius-lg: 22px;

    --tip-form-width: 1080px;

    --tip-transition:
        color .18s ease,
        background-color .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}


/* ============================================================
   RESET
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    color-scheme: light;
}

body {
    margin: 0;

    min-width: 320px;

    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    color: var(--tip-text);
    background:
        radial-gradient(
            circle at 85% 5%,
            rgba(23, 120, 194, 0.055),
            transparent 28%
        ),
        var(--tip-page);

    font-size: 16px;
    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

img {
    display: block;
    max-width: 100%;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

::selection {
    color: var(--tip-white);
    background: var(--tip-blue-700);
}


/* ============================================================
   ACCESSIBILITY
   ============================================================ */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(23, 120, 194, 0.25);
    outline-offset: 3px;
}


/* ============================================================
   AUTH / STUDENT HEADER
   ============================================================ */

.tip-auth-header {
    position: relative;
    z-index: 1000;

    color: var(--tip-text);

    background: rgba(255, 255, 255, 0.97);

    border-bottom: 1px solid var(--tip-border);

    box-shadow:
        0 2px 10px rgba(9, 30, 57, 0.025);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.tip-auth-header-inner {
    width: min(
        calc(100% - 40px),
        var(--tip-form-width)
    );

    min-height: 76px;

    margin: 0 auto;
    padding: 11px 0;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;
}

.tip-auth-header strong {
    color: var(--tip-navy-900);

    font-size: 18px;
    font-weight: 900;
}

.tip-auth-header a {
    color: var(--tip-blue-700);

    font-size: 14px;
    font-weight: 800;

    text-decoration: none;

    transition: var(--tip-transition);
}

.tip-auth-header a:hover {
    color: var(--tip-orange-700);
}


/* ============================================================
   OFFICIAL LOGO
   ============================================================ */

.tip-auth-brand {
    display: inline-flex;
    align-items: center;

    gap: 13px;

    color: var(--tip-navy-900);

    text-decoration: none;
}

.tip-auth-logo {
    display: block;

    width: auto;
    height: auto;

    max-width: 175px;
    max-height: 52px;

    object-fit: contain;
}

.tip-auth-brand-copy {
    padding-left: 13px;

    border-left: 1px solid var(--tip-border);

    line-height: 1.3;
}

.tip-auth-brand-copy strong {
    display: block;

    color: var(--tip-navy-900);

    font-size: 13px;
    font-weight: 900;
}

.tip-auth-brand-copy small {
    display: block;

    margin-top: 2px;

    color: var(--tip-muted);

    font-size: 11px;
    font-weight: 750;
}


/* ============================================================
   PAGE
   ============================================================ */

.tip-page {
    width: min(
        calc(100% - 30px),
        var(--tip-form-width)
    );

    margin: 38px auto 64px;
}

.tip-page-wide {
    width: min(
        calc(100% - 30px),
        1180px
    );

    margin: 38px auto 64px;
}


/* ============================================================
   AUTH TWO-COLUMN LAYOUT
   Used later for Signup / Login / Reset Password
   ============================================================ */

.tip-auth-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 0.92fr)
        minmax(420px, 1.08fr);

    align-items: stretch;

    gap: 24px;
}

.tip-auth-visual {
    position: relative;

    min-height: 590px;

    overflow: hidden;

    border-radius: var(--tip-radius-lg);

    color: var(--tip-white);

    background:
        radial-gradient(
            circle at 70% 20%,
            rgba(39, 122, 214, 0.30),
            transparent 30%
        ),
        linear-gradient(
            140deg,
            var(--tip-navy-950),
            var(--tip-navy-800)
        );

    box-shadow: var(--tip-shadow);
}

.tip-auth-visual img {
    width: 100%;
    height: 100%;

    min-height: 590px;

    object-fit: cover;
}

.tip-auth-visual-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding: 32px;

    background:
        linear-gradient(
            to top,
            rgba(6, 20, 38, 0.86),
            rgba(6, 20, 38, 0.02) 66%
        );
}

.tip-auth-visual-overlay h2 {
    max-width: 520px;

    margin: 0 0 8px;

    color: var(--tip-white);

    font-size: 29px;
    line-height: 1.18;
}

.tip-auth-visual-overlay p {
    max-width: 520px;

    margin: 0;

    color: #d5e1ee;

    font-size: 15px;
    line-height: 1.65;
}


/* ============================================================
   CARD
   ============================================================ */

.tip-card {
    overflow: hidden;

    background: var(--tip-white);

    border: 1px solid var(--tip-border);
    border-radius: var(--tip-radius-lg);

    box-shadow: var(--tip-shadow-sm);
}

.tip-card-head {
    padding: 27px 30px 24px;

    background:
        linear-gradient(
            180deg,
            #fbfdff 0%,
            #f4f8fc 100%
        );

    border-bottom: 1px solid var(--tip-border);
}

.tip-card-head .tip-eyebrow {
    display: inline-flex;

    margin-bottom: 10px;
    padding: 6px 10px;

    border-radius: 999px;

    color: var(--tip-blue-700);
    background: var(--tip-blue-100);

    font-size: 11px;
    font-weight: 900;

    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tip-card-head h1 {
    margin: 0 0 8px;

    color: var(--tip-navy-900);

    font-size: clamp(27px, 3.5vw, 35px);
    line-height: 1.18;

    letter-spacing: -0.025em;
}

.tip-card-head h2 {
    margin: 0 0 8px;

    color: var(--tip-navy-900);

    font-size: 24px;
    line-height: 1.25;
}

.tip-card-head p {
    max-width: 720px;

    margin: 0;

    color: var(--tip-muted);

    line-height: 1.65;
}

.tip-card-body {
    padding: 28px 30px 32px;
}


/* ============================================================
   SECTION CARD
   ============================================================ */

.tip-section-card {
    margin-bottom: 20px;

    padding: 24px;

    border: 1px solid var(--tip-border);
    border-radius: var(--tip-radius);

    background: var(--tip-white);

    box-shadow: var(--tip-shadow-xs);
}

.tip-section-card:last-child {
    margin-bottom: 0;
}

.tip-section-card h2,
.tip-section-card h3 {
    margin-top: 0;

    color: var(--tip-navy-900);
}


/* ============================================================
   ALERTS
   ============================================================ */

.tip-alert {
    position: relative;

    margin-bottom: 18px;
    padding: 14px 16px;

    border-radius: 11px;

    line-height: 1.55;
}

.tip-alert.error {
    color: #9b251c;
    background: var(--tip-red-100);

    border: 1px solid #f5c8c3;
}

.tip-alert.success {
    color: #086149;
    background: var(--tip-green-100);

    border: 1px solid #bce6d8;
}

.tip-alert.info {
    color: #175c91;
    background: #edf7ff;

    border: 1px solid #c9e4f8;
}

.tip-alert.warning {
    color: #80530a;
    background: var(--tip-yellow-100);

    border: 1px solid #efdda8;
}

.tip-alert strong {
    font-weight: 900;
}


/* ============================================================
   FORM GRID
   ============================================================ */

.tip-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.tip-grid-3 {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 18px;
}

.tip-field {
    margin-bottom: 18px;
}

.tip-grid .tip-field,
.tip-grid-3 .tip-field {
    margin-bottom: 0;
}

.tip-field.full {
    grid-column: 1 / -1;
}

.tip-field label {
    display: block;

    margin-bottom: 7px;

    color: var(--tip-text);

    font-size: 14px;
    font-weight: 800;
}

.tip-required {
    margin-left: 2px;

    color: var(--tip-red-700);
}

.tip-input,
.tip-select,
.tip-textarea {
    width: 100%;

    border: 1px solid var(--tip-border-strong);
    border-radius: 10px;

    color: #172133;
    background: var(--tip-white);

    font: inherit;

    transition: var(--tip-transition);
}

.tip-input,
.tip-select {
    height: 49px;

    padding: 10px 12px;
}

.tip-textarea {
    min-height: 110px;

    padding: 12px;

    resize: vertical;
}

.tip-input::placeholder,
.tip-textarea::placeholder {
    color: #9aa6b5;
}

.tip-input:hover,
.tip-select:hover,
.tip-textarea:hover {
    border-color: #aab9ca;
}

.tip-input:focus,
.tip-select:focus,
.tip-textarea:focus {
    outline: none;

    border-color: var(--tip-blue-600);

    box-shadow:
        0 0 0 4px rgba(23, 120, 194, 0.10);
}

.tip-input[readonly],
.tip-textarea[readonly] {
    color: #4a5a6e;
    background: #f7f9fb;

    cursor: default;
}

.tip-input:disabled,
.tip-select:disabled,
.tip-textarea:disabled {
    color: #718096;
    background: #f1f4f7;

    cursor: not-allowed;

    opacity: 1;
}


/* ============================================================
   FIELD NOTES
   ============================================================ */

.tip-note {
    display: block;

    margin-top: 6px;

    color: var(--tip-muted);

    font-size: 13px;
    line-height: 1.5;
}

.tip-note.success {
    color: var(--tip-green-700);
}

.tip-note.error {
    color: var(--tip-red-700);
}


/* ============================================================
   CHECKBOXES
   ============================================================ */

.tip-check {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    margin: 14px 0;

    color: var(--tip-text-soft);

    line-height: 1.55;
}

.tip-check input {
    width: 18px;
    height: 18px;

    flex: 0 0 auto;

    margin-top: 3px;

    accent-color: var(--tip-blue-700);
}

.tip-check label {
    cursor: pointer;
}


/* ============================================================
   ACTIONS / BUTTONS
   ============================================================ */

.tip-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 10px;

    margin-top: 23px;
}

.tip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 11px 19px;

    border: 1px solid transparent;
    border-radius: 11px;

    text-decoration: none;

    font-size: 15px;
    font-weight: 850;

    cursor: pointer;

    transition: var(--tip-transition);
}

.tip-btn:hover {
    transform: translateY(-1px);
}

.tip-btn-primary {
    color: var(--tip-white);
    background: var(--tip-orange-600);

    box-shadow:
        0 10px 24px rgba(243, 111, 33, 0.22);
}

.tip-btn-primary:hover {
    color: var(--tip-white);
    background: var(--tip-orange-700);
}

.tip-btn-secondary {
    color: var(--tip-white);
    background: var(--tip-blue-700);
}

.tip-btn-secondary:hover {
    color: var(--tip-white);
    background: #0a548f;
}

.tip-btn-navy {
    color: var(--tip-white);
    background: var(--tip-navy-900);
}

.tip-btn-light {
    color: var(--tip-navy-900);
    background: #eef3f8;

    border-color: #dde5ee;
}

.tip-btn-outline {
    color: var(--tip-navy-900);
    background: var(--tip-white);

    border-color: var(--tip-border-strong);
}

.tip-btn-success {
    color: var(--tip-white);
    background: var(--tip-green-700);
}

.tip-btn-danger {
    color: var(--tip-white);
    background: var(--tip-red-700);
}

.tip-btn-small {
    min-height: 38px;

    padding: 8px 13px;

    font-size: 13px;
}

.tip-btn-block {
    width: 100%;
}

.tip-btn:disabled,
.tip-btn.disabled,
.tip-btn[aria-disabled="true"] {
    opacity: 0.50;

    cursor: not-allowed;

    pointer-events: none;

    transform: none;
    box-shadow: none;
}


/* ============================================================
   LINKS
   ============================================================ */

.tip-links {
    margin-top: 20px;

    color: var(--tip-muted);

    line-height: 1.85;
}

.tip-links a {
    color: var(--tip-blue-700);

    font-weight: 800;

    transition: var(--tip-transition);
}

.tip-links a:hover {
    color: var(--tip-orange-700);
}


/* ============================================================
   PASSWORD FIELD
   ============================================================ */

.tip-password-wrap {
    position: relative;
}

.tip-password-wrap .tip-input {
    padding-right: 72px;
}

.tip-show {
    position: absolute;

    top: 50%;
    right: 10px;

    transform: translateY(-50%);

    min-width: 50px;

    padding: 6px 7px;

    border: 0;
    border-radius: 7px;

    color: var(--tip-blue-700);
    background: transparent;

    font-size: 13px;
    font-weight: 850;

    cursor: pointer;
}

.tip-show:hover {
    background: var(--tip-blue-50);
}


/* ============================================================
   JOURNEY STEP BAR
   ============================================================ */

.tip-stepbar {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 22px;
}

.tip-stepbar .tip-step,
.tip-stepbar-item {
    display: inline-flex;
    align-items: center;

    min-height: 35px;

    padding: 7px 12px;

    border: 1px solid transparent;
    border-radius: 999px;

    color: #536276;
    background: #eaf0f6;

    font-size: 12px;
    font-weight: 800;

    box-shadow: none;
}

.tip-stepbar .tip-step.active,
.tip-stepbar-item.active {
    color: var(--tip-white);
    background: var(--tip-orange-600);
}

.tip-stepbar .tip-step.complete,
.tip-stepbar-item.complete {
    color: #076149;
    background: var(--tip-green-100);

    border-color: #c1e7da;
}


/* ============================================================
   SUMMARY
   ============================================================ */

.tip-summary {
    margin-bottom: 20px;
    padding: 18px;

    color: var(--tip-text-soft);

    background: #f8fafc;

    border: 1px solid var(--tip-border);
    border-radius: 12px;

    line-height: 1.7;
}

.tip-summary strong {
    color: var(--tip-navy-900);
}


/* ============================================================
   KEY VALUE ROWS
   ============================================================ */

.tip-summary-row,
.tip-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 18px;

    padding: 11px 0;

    border-bottom: 1px solid var(--tip-border);
}

.tip-summary-row:last-child,
.tip-detail-row:last-child {
    border-bottom: 0;
}

.tip-summary-row span:first-child,
.tip-detail-row span:first-child {
    color: var(--tip-muted);
}

.tip-summary-row strong,
.tip-detail-row strong {
    color: var(--tip-navy-900);

    text-align: right;
}


/* ============================================================
   STATUS BADGES
   ============================================================ */

.tip-status {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    padding: 6px 10px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 850;
}

.tip-status.pending {
    color: #825600;
    background: var(--tip-yellow-100);
}

.tip-status.success,
.tip-status.paid,
.tip-status.accepted,
.tip-status.active {
    color: #076149;
    background: var(--tip-green-100);
}

.tip-status.info,
.tip-status.issued {
    color: #145a91;
    background: var(--tip-blue-100);
}

.tip-status.failed,
.tip-status.error {
    color: #9c281f;
    background: var(--tip-red-100);
}


/* ============================================================
   METRIC / DASHBOARD CARDS
   ============================================================ */

.tip-metric-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 14px;
}

.tip-metric-card {
    padding: 18px;

    border: 1px solid var(--tip-border);
    border-radius: 13px;

    background: var(--tip-white);

    box-shadow: var(--tip-shadow-xs);
}

.tip-metric-card span {
    display: block;

    margin-bottom: 4px;

    color: var(--tip-muted);

    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tip-metric-card strong {
    display: block;

    color: var(--tip-navy-900);

    font-size: 21px;
    line-height: 1.3;
}


/* ============================================================
   TIMELINE
   ============================================================ */

.tip-timeline {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 10px;

    margin: 20px 0;
}

.tip-timeline-item {
    position: relative;

    padding: 17px;

    border: 1px solid var(--tip-border);
    border-radius: 12px;

    background: var(--tip-white);
}

.tip-timeline-item span {
    display: block;

    color: var(--tip-muted);

    font-size: 12px;
    font-weight: 800;
}

.tip-timeline-item strong {
    display: block;

    margin-top: 4px;

    color: var(--tip-navy-900);

    font-size: 15px;
}


/* ============================================================
   PROGRESS BAR
   ============================================================ */

.tip-progress {
    width: 100%;
    height: 9px;

    overflow: hidden;

    border-radius: 999px;

    background: #e7edf4;
}

.tip-progress-bar {
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--tip-blue-700),
            var(--tip-blue-500, #258fd3)
        );
}


/* ============================================================
   DATA TABLE
   ============================================================ */

.tip-table-wrap {
    width: 100%;

    overflow-x: auto;

    border: 1px solid var(--tip-border);
    border-radius: 13px;

    background: var(--tip-white);
}

.tip-table {
    width: 100%;

    min-width: 700px;

    border-collapse: collapse;
}

.tip-table th,
.tip-table td {
    padding: 13px 14px;

    border-bottom: 1px solid var(--tip-border);

    text-align: left;
    vertical-align: middle;
}

.tip-table th {
    color: #536276;
    background: #f8fafc;

    font-size: 12px;
    font-weight: 900;

    text-transform: uppercase;
    letter-spacing: 0.035em;
}

.tip-table td {
    color: var(--tip-text-soft);

    font-size: 14px;
}

.tip-table tbody tr:last-child td {
    border-bottom: 0;
}


/* ============================================================
   EMPTY STATE
   ============================================================ */

.tip-empty {
    padding: 36px 24px;

    border: 1px dashed #c9d4e1;
    border-radius: 14px;

    text-align: center;

    color: var(--tip-muted);
    background: #fafbfd;
}

.tip-empty h3 {
    margin: 0 0 7px;

    color: var(--tip-navy-900);
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 900px) {

    .tip-auth-layout {
        grid-template-columns: 1fr;
    }

    .tip-auth-visual {
        min-height: 330px;
    }

    .tip-auth-visual img {
        min-height: 330px;
        max-height: 430px;
    }

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

    .tip-metric-grid,
    .tip-timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 720px) {

    .tip-auth-header-inner {
        width: calc(100% - 28px);

        min-height: 70px;

        padding-top: 9px;
        padding-bottom: 9px;

        gap: 10px;
    }

    .tip-auth-logo {
        max-width: 145px;
        max-height: 44px;
    }

    .tip-auth-brand-copy {
        display: none;
    }

    .tip-page,
    .tip-page-wide {
        width: calc(100% - 24px);

        margin-top: 22px;
        margin-bottom: 40px;
    }

    .tip-card {
        border-radius: 17px;
    }

    .tip-card-head {
        padding: 23px 19px 20px;
    }

    .tip-card-body {
        padding: 22px 19px 25px;
    }

    .tip-card-head h1 {
        font-size: 28px;
    }

    .tip-grid,
    .tip-grid-3 {
        grid-template-columns: 1fr;

        gap: 0;
    }

    .tip-grid .tip-field,
    .tip-grid-3 .tip-field {
        margin-bottom: 18px;
    }

    .tip-field.full {
        grid-column: auto;
    }

    .tip-actions {
        display: grid;

        grid-template-columns: 1fr;
    }

    .tip-btn {
        width: 100%;

        min-height: 50px;

        text-align: center;
    }

    .tip-summary-row,
    .tip-detail-row {
        display: block;
    }

    .tip-summary-row strong,
    .tip-detail-row strong {
        display: block;

        margin-top: 3px;

        text-align: left;
    }

    .tip-auth-visual {
        min-height: 275px;
    }

    .tip-auth-visual img {
        min-height: 275px;
        height: 275px;
    }

    .tip-auth-visual-overlay {
        padding: 22px;
    }

    .tip-auth-visual-overlay h2 {
        font-size: 24px;
    }
}


@media (max-width: 520px) {

    .tip-auth-header-inner > div:last-child {
        font-size: 12px;

        text-align: right;
    }

    .tip-metric-grid,
    .tip-timeline {
        grid-template-columns: 1fr;
    }

    .tip-section-card {
        padding: 19px;
    }
}


@media (max-width: 360px) {

    .tip-page,
    .tip-page-wide {
        width: calc(100% - 18px);
    }

    .tip-auth-header-inner {
        width: calc(100% - 20px);
    }

    .tip-card-head,
    .tip-card-body {
        padding-left: 16px;
        padding-right: 16px;
    }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}