* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Noto Sans TC", "Noto Sans JP", "Noto Sans Thai", "Noto Sans", "Segoe UI", "Microsoft JhengHei", sans-serif;
    color: #1f2937;
    background:
        radial-gradient(circle at top, rgba(180, 217, 255, 0.7), transparent 36%),
        linear-gradient(180deg, #f4f8ff 0%, #eef4f7 48%, #f8fbfd 100%);
}

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

.container-fluid {
    width: 100%;
    padding-right: 24px;
    padding-left: 24px;
}

.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.auth-body {
    min-height: 100vh;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 20px;
}

.login-card {
    width: min(960px, 100%);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: stretch;
}

.login-card__brand,
.panel {
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.login-card__brand {
    padding: 40px;
    background:
        linear-gradient(135deg, rgba(11, 91, 173, 0.95), rgba(13, 148, 136, 0.88)),
        #0f172a;
    color: #fff;
}

.login-card__eyebrow,
.app-header__eyebrow,
.hero-panel__eyebrow {
    margin: 0 0 12px;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.8;
}

.login-card h1,
.app-header__title,
.panel h2 {
    margin: 0 0 12px;
}

.form-panel {
    padding: 32px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.field span {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 15px;
    background: #fff;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: #0b5bad;
    box-shadow: 0 0 0 4px rgba(11, 91, 173, 0.12);
}

.field select {
    min-height: 51px;
    color: #1f2937;
}

.field small {
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.button--primary {
    color: #fff;
    background: linear-gradient(135deg, #0b5bad, #0f766e);
}

.button--dark {
    color: #fff;
    background: #0f172a;
}

.auth-links {
    margin-top: 18px;
    text-align: right;
}

.auth-links a {
    color: #0b5bad;
    font-size: 14px;
    font-weight: 600;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(248, 250, 252, 0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.app-header__inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.app-header__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.app-header__nav a {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.72);
    font-size: 14px;
    font-weight: 600;
}

.app-main {
    padding-top: 28px;
    padding-bottom: 40px;
}

.panel {
    padding: 24px;
    margin-bottom: 24px;
}

.student-profile-card {
    border: 0;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.student-profile-card .card-body {
    padding: 28px;
}

.student-profile-card .form-control,
.student-profile-card .form-select {
    min-height: 48px;
    border-color: #cbd5e1;
    border-radius: 14px;
    color: #1f2937;
    background-color: #fff;
}

.student-profile-card .form-control:disabled {
    color: #64748b;
    background-color: #f8fafc;
}

.student-profile-card .form-control:focus,
.student-profile-card .form-select:focus {
    border-color: #0b5bad;
    box-shadow: 0 0 0 4px rgba(11, 91, 173, 0.12);
}

.student-profile-card .form-label {
    color: #334155;
    font-weight: 700;
}

.student-profile-card .form-text {
    color: #64748b;
    line-height: 1.5;
}

.hero-panel--warning {
    background:
        linear-gradient(135deg, rgba(255, 243, 205, 0.95), rgba(255, 237, 213, 0.95));
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.info-card__label {
    margin: 0 0 8px;
    font-size: 13px;
    color: #64748b;
}

.info-card__value {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

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

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

.field-actions {
    display: flex;
    justify-content: flex-end;
}

.notice {
    margin-bottom: 16px;
    border-radius: 18px;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
}

.notice--success {
    background: #dcfce7;
    color: #166534;
}

.notice--error {
    background: #fee2e2;
    color: #991b1b;
}

.notice--warning {
    background: #fef3c7;
    color: #92400e;
}

.portal-body {
    min-height: 100vh;
}

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

.portal-sidebar {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 28px 22px;
    color: #e2e8f0;
    background:
        radial-gradient(circle at top, rgba(45, 212, 191, 0.24), transparent 30%),
        linear-gradient(180deg, #0f172a 0%, #111c35 54%, #172554 100%);
}

.portal-sidebar__brand,
.portal-sidebar__meta {
    border-radius: 24px;
    padding: 22px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.portal-sidebar__brand h1,
.portal-sidebar__meta-value {
    margin: 0 0 10px;
}

.portal-sidebar__brand-logo-wrap {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.portal-sidebar__brand-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.portal-sidebar__brand p,
.portal-sidebar__meta-label,
.portal-sidebar__meta-sub {
    margin: 0;
    color: rgba(226, 232, 240, 0.8);
}

.portal-sidebar__eyebrow,
.portal-topbar__eyebrow {
    margin: 0 0 10px;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.9);
}

.portal-nav {
    display: grid;
    gap: 10px;
}

.portal-nav__link,
.portal-sidebar__logout {
    display: flex;
    align-items: center;
    min-height: 54px;
    border-radius: 18px;
    padding: 0 18px;
    font-weight: 600;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(255, 255, 255, 0.05);
    transition: 0.2s ease;
}

.portal-nav__link:hover,
.portal-sidebar__logout:hover,
.portal-nav__link.is-active {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(45, 212, 191, 0.4);
    transform: translateX(2px);
}

.portal-sidebar__logout {
    margin-top: auto;
    justify-content: center;
    background: rgba(239, 68, 68, 0.14);
}

.portal-main {
    min-width: 0;
}

.portal-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(244, 248, 255, 0.78);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.portal-topbar__inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.portal-topbar__title {
    margin: 0;
    font-size: 30px;
}

.portal-topbar__badge {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    color: #0f766e;
    font-weight: 700;
    background: rgba(204, 251, 241, 0.85);
    border: 1px solid rgba(45, 212, 191, 0.36);
}

.portal-topbar__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.locale-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.locale-switcher--auth {
    justify-content: flex-end;
}

.locale-switcher__link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    color: #36506f;
    font-size: 13px;
    font-weight: 700;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: 0.2s ease;
}

.locale-switcher__link:hover {
    color: #1f3f67;
    border-color: rgba(84, 121, 165, 0.42);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

.locale-switcher__link.is-active {
    color: #fff;
    background: linear-gradient(135deg, #0b5bad, #0f766e);
    border-color: transparent;
    box-shadow: 0 14px 30px rgba(11, 91, 173, 0.24);
}

.student-portal-alt-actions {
    display: grid;
    gap: 12px;
}

.student-portal-alt-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    border-radius: 14px;
    padding: 0 18px;
    color: #1f3f67;
    font-weight: 700;
    background: #fff;
    border: 1px solid rgba(84, 121, 165, 0.26);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.student-portal-alt-button--line {
    color: #fff;
    background: linear-gradient(135deg, #06c755, #039d45);
    border-color: transparent;
}

.student-portal-alt-button--soft {
    background: linear-gradient(135deg, rgba(237, 242, 247, 0.95), rgba(255, 255, 255, 0.96));
}

.student-portal-flow-card {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    border: 1px solid rgba(134, 148, 168, 0.18);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    box-shadow: 0 32px 80px rgba(45, 63, 89, 0.14);
    padding: 2.5rem;
}

.student-portal-flow-card__header h1 {
    margin: 0 0 0.75rem;
    font-size: 1.85rem;
    color: #23344f;
}

.student-portal-flow-card__header p:last-child {
    margin: 0 0 1.5rem;
    color: #6f7c91;
    line-height: 1.75;
}

.student-portal-flow-card__eyebrow {
    margin: 0 0 0.75rem;
    color: #36506f;
    font-size: 0.85rem;
    font-weight: 700;
}

.student-portal-flow-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.student-portal-flow-actions a {
    color: #36506f;
    font-weight: 600;
}

.student-portal-flow-summary {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(238, 244, 250, 0.92);
    color: #36506f;
    margin-bottom: 1.25rem;
}

.student-portal-flow-summary div + div {
    margin-top: 0.4rem;
}

.student-portal-flow-line-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(238, 244, 250, 0.92);
    margin-bottom: 1.25rem;
}

.student-portal-flow-line-profile img {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    object-fit: cover;
}

.student-portal-flow-line-profile__label {
    color: #64748b;
    font-size: 0.8rem;
}

.student-portal-flow-line-profile__value {
    color: #23344f;
    font-weight: 700;
}

.student-portal-verification-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.student-portal-verification-row__button {
    min-height: 48px;
    border-radius: 14px;
    padding: 0 18px;
    white-space: nowrap;
    font-weight: 700;
}

.student-portal-verification-status {
    margin-bottom: 1.25rem;
    border-radius: 16px;
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.student-portal-verification-status--pending {
    color: #36506f;
    background: rgba(238, 244, 250, 0.95);
}

.student-portal-verification-status--verified {
    color: #166534;
    background: rgba(220, 252, 231, 0.96);
}

.student-portal-verification-status--expired,
.student-portal-verification-status--failed {
    color: #991b1b;
    background: rgba(254, 226, 226, 0.96);
}

.dashboard-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
    gap: 20px;
}

.panel--feature {
    background:
        linear-gradient(135deg, rgba(11, 91, 173, 0.96), rgba(15, 118, 110, 0.88)),
        #0f172a;
    color: #fff;
}

.panel--feature h2,
.panel--feature p {
    color: inherit;
}

.panel--soft {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.94));
}

.bullet-list {
    margin: 0;
    padding-left: 20px;
    color: #334155;
}

.bullet-list li + li {
    margin-top: 10px;
}

@media (max-width: 900px) {
    .login-card,
    .dashboard-grid,
    .form-grid,
    .dashboard-columns {
        grid-template-columns: 1fr;
    }

    .app-header__inner {
        align-items: flex-start;
        flex-direction: column;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .portal-shell {
        grid-template-columns: 1fr;
    }

    .portal-sidebar {
        gap: 18px;
        padding: 20px;
    }

    .portal-topbar__inner {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .portal-topbar__actions,
    .locale-switcher--auth {
        justify-content: flex-start;
    }

    .student-portal-flow-card {
        padding: 2rem 1.5rem;
    }

    .student-portal-verification-row {
        grid-template-columns: 1fr;
    }

    .student-portal-flow-actions {
        flex-direction: column;
    }

    .login-screen {
        padding: 1.5rem 0;
    }
}
