:root {
    --tmc: #7E1F3F;
    --tmc-dark: #681832;
    --text: #222;
    --muted: #666;
    --border: #d8d8d8;
    --bg: #f4f7fb;
    --blue: #0f4c97;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
}

a {
    text-decoration: none;
}

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

/* =========================================
   WELCOME HEADER
========================================= */

.welcome-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.welcome-header {
    height: 128px;
    flex-shrink: 0;

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

    padding: 0 56px;

    position: relative;
    overflow: hidden;

    background:
        radial-gradient(
            circle at top right,
            rgba(126,31,63,0.10),
            transparent 26%
        ),
        radial-gradient(
            circle at top left,
            rgba(126,31,63,0.05),
            transparent 22%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fff8fa 100%
        );

    box-shadow: 0 3px 14px rgba(15,23,42,0.04);
}

/* Decorative background */

.welcome-header::before {
    content: "";

    position: absolute;

    top: -140px;
    right: -80px;

    width: 720px;
    height: 320px;

    background:
        radial-gradient(
            ellipse at center,
            rgba(126,31,63,0.10) 0%,
            rgba(126,31,63,0.03) 38%,
            transparent 72%
        );

    transform: rotate(-8deg);

    pointer-events: none;
}

.welcome-header::after {
    content: "";

    position: absolute;

    top: -120px;
    right: 120px;

    width: 520px;
    height: 240px;

    border-radius: 50%;

    border:
        1px solid rgba(126,31,63,0.08);

    transform: rotate(-8deg);

    pointer-events: none;
}

/* Logo */

.header-logo {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 98px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(126,31,63,0.08));
}

/* Security */

.header-security {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

.header-security svg {
    width: 22px;
    height: 22px;
}

/* Divider */

.welcome-header-divider {
    height: 4px;

    background:
        linear-gradient(
            90deg,
            #7E1F3F,
            #a51d4f,
            #7E1F3F
        );

    flex-shrink: 0;

    box-shadow: 0 1px 4px rgba(126,31,63,0.16);
}

.welcome-main {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 0;
}

.welcome-image-panel {
    position: relative;
    overflow: hidden;
}

.welcome-image-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.welcome-image-panel::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 260px;
    background: linear-gradient(to right, rgba(255,255,255,0), #fff);
}

.welcome-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 80px;
    background: #fff;
}

.welcome-form-wrapper {
    width: 100%;
    max-width: 620px;
    min-height: 560px;
    padding-top: 40px;
    display: flex;
    flex-direction: column;
}

.welcome-fixed-heading {
    flex-shrink: 0;
    min-height: 170px;
}

.welcome-subtitle {
    font-size: 25px;
    font-weight: 400;
    margin-bottom: 2px;
}

.welcome-title {
    font-size: 54px;
    line-height: 1.05;
    font-weight: 650;
    color: var(--tmc);
    margin: 0 0 4px;
}

.welcome-title-secondary {
    font-size: 29px;
    font-weight: 400;
    margin-bottom: 18px;
}

.welcome-divider {
    width: 44px;
    height: 2px;
    background: var(--tmc);
    margin-bottom: 20px;
}

.welcome-transition-area {
    position: relative;
    min-height: 360px;
}

.welcome-screen {
    display: none;
}

.welcome-screen.active-screen {
    display: block;
}

.welcome-description {
    font-size: 17px;
    line-height: 1.55;
    color: var(--muted);
    margin: 0 0 26px;
}

.welcome-form-group {
    margin-bottom: 20px;
}

.welcome-form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
}

.welcome-form-group span {
    color: var(--tmc);
}

.welcome-input-box {
    height: 56px;
    position: relative;
}

.welcome-input-icon {
    position: absolute;
    left: 18px;
    top: 17px;
    width: 22px;
    height: 22px;
    color: #666;
    pointer-events: none;
}

.welcome-input {
    width: 100%;
    height: 56px;
    margin: 0;
    padding: 0 20px 0 56px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    line-height: 56px;
    outline: none;
}

.welcome-input:focus {
    border-color: var(--tmc);
    box-shadow: 0 0 0 4px rgba(126,31,63,0.08);
}

.primary-btn,
.secondary-btn-large {
    width: 100%;
    height: 58px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
}

.primary-btn {
    border: 0;
    background: var(--tmc);
    color: #fff;
    margin-bottom: 22px;
}

.primary-btn:hover {
    background: var(--tmc-dark);
}

.secondary-btn-large {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--tmc);
    background: #fff;
    color: var(--tmc);
    margin-bottom: 24px;
}

.or-divider,
.student-type-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    color: #999;
    font-size: 13px;
    font-weight: 600;
}

.or-divider {
    margin-bottom: 22px;
}

.student-type-divider {
    margin: 14px 0 22px;
}

.or-divider::before,
.or-divider::after,
.student-type-divider::before,
.student-type-divider::after {
    content: "";
    height: 1px;
    background: #e5e5e5;
}

.welcome-contact {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-size: 16px;
    color: #666;
}

.welcome-contact svg {
    width: 24px;
    height: 24px;
}

.welcome-contact a {
    color: var(--tmc);
    font-weight: 700;
}

.welcome-footer {
    height: 54px;

    flex-shrink: 0;

    margin-top: auto;

    padding: 0 56px;

    background:
        linear-gradient(
            90deg,
            #7E1F3F,
            #8e2447
        );

    color: #fff;

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

    font-size: 14px;

    box-shadow:
        0 -2px 10px rgba(15,23,42,0.05);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: #fff;
}

/* Welcome transition */

.transition-item {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.screen-out .transition-item {
    opacity: 0;
    transform: translateY(-10px);
}

#student-type-screen .transition-item {
    opacity: 1;
    transform: translateY(0);
}

#student-type-screen.is-entering .transition-item {
    opacity: 0;
    transform: translateY(16px);
}

#student-type-screen.screen-in.is-entering .transition-item {
    opacity: 1;
    transform: translateY(0);
}

#student-type-screen.screen-in.is-entering .transition-item:nth-child(1) {
    transition-delay: 0.08s;
}

#student-type-screen.screen-in.is-entering .transition-item:nth-child(2) {
    transition-delay: 0.18s;
}

#student-type-screen.screen-in.is-entering .transition-item:nth-child(3) {
    transition-delay: 0.28s;
}

#student-type-screen.screen-in.is-entering .transition-item:nth-child(4) {
    transition-delay: 0.38s;
}

/* Student type cards */

.student-type-card {
    position: relative;
    border: 1px solid #e1d6db;
    border-left: 5px solid rgba(126,31,63,0.08);
    border-radius: 18px;
    padding: 26px 30px;
    background: #fff;
    cursor: pointer;
    margin-bottom: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.035);
    min-height: 138px;
    transition:
    transform 0.12s ease,
    border-color 0.12s ease,
    box-shadow 0.12s ease,
    background-color 0.12s ease;
}

.student-type-card:hover {
    border-color: var(--tmc);

    border-left-color: var(--tmc);

    background-color: rgba(126,31,63,0.035);

    transform: translateY(-1px);

    box-shadow: 0 10px 22px rgba(126,31,63,0.10);
}

.student-type-card::after {
    content: "Select";
    position: absolute;
    top: 22px;
    right: 26px;
    font-size: 12px;
    font-weight: 700;
    color: var(--tmc);
    opacity: 0;
    transform: translateX(-6px);
    transition: 0.22s ease;
}

.student-type-card:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.student-type-card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--tmc);
    margin-bottom: 10px;
}

.student-type-card-description {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 12px;
}

.student-type-card-examples {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
}

