/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* LISA Color Palette + neomorphic design system
   (design language ported from the Parent-Teacher Conference prototype) */
:root {
    --lisa-red: #da251c;
    --lisa-red-deep: #a81b14;
    --lisa-blue: #1b1b33;
    --lisa-white: #ffffff;

    --yellow: #f5b93b;
    --green: #38a169;

    --bg: #e8ecf2;
    --surface: #edf1f7;
    --surface-2: #f4f6fb;
    --text: #1a2540;
    --text-soft: #4a5b7c;
    --muted: #8090a8;

    --sh-out:
        10px 10px 24px rgba(160, 175, 205, 0.48),
        -10px -10px 24px rgba(255, 255, 255, 0.92);
    --sh-out-md:
        7px 7px 16px rgba(160, 175, 205, 0.42),
        -7px -7px 16px rgba(255, 255, 255, 0.92);
    --sh-out-sm:
        4px 4px 10px rgba(160, 175, 205, 0.38),
        -4px -4px 10px rgba(255, 255, 255, 0.92);
    --sh-in:
        inset 5px 5px 12px rgba(160, 175, 205, 0.45),
        inset -5px -5px 12px rgba(255, 255, 255, 0.92);
    --sh-in-sm:
        inset 3px 3px 7px rgba(160, 175, 205, 0.40),
        inset -3px -3px 7px rgba(255, 255, 255, 0.92);

    --r-xl: 28px;
    --r-lg: 22px;
    --r-md: 16px;
    --r-sm: 12px;
    --r-pill: 999px;

    --font: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-display: 'Fraunces', Georgia, serif;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
}

.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Login Section Styles */
.login-section {
    align-items: flex-start;
    padding: 24px;
    background: var(--bg);
}

.login-card {
    width: 100%;
    max-width: 1040px;
    background: var(--surface);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-out);
    padding: 40px;
}

.login-layout {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 48px;
    align-items: start;
}

.login-left {
    display: flex;
    flex-direction: column;
}

/* Sign in / sign up heading */
.auth-head {
    margin-bottom: 24px;
}

.auth-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--lisa-red);
    margin-bottom: 10px;
}

.auth-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 52px);
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--lisa-blue);
    font-weight: 900;
    text-transform: uppercase;
    margin: 0 0 14px;
}

.auth-title .hl,
.auth-cta .hl {
    position: relative;
    display: inline-block;
    z-index: 0;
}

/* Big heading: always-visible yellow background highlight */
.auth-title .hl::before {
    content: '';
    position: absolute;
    left: -4px;
    right: -4px;
    bottom: 4%;
    height: 36%;
    background: var(--yellow);
    opacity: 0.8;
    border-radius: 4px;
    z-index: -1;
    transform: skewX(-6deg);
}

/* Continue button: yellow underline sweep on hover */
.auth-cta .hl::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 3px;
    background: var(--yellow);
    border-radius: 2px;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.28s cubic-bezier(.4,0,.2,1);
}

.auth-cta:hover .hl::before,
.auth-cta:focus .hl::before {
    transform: scaleX(1);
}

.auth-head .muted {
    color: var(--text-soft);
    font-size: 0.98rem;
    max-width: 46ch;
}

/* Form card */
.auth-form {
    max-width: 480px;
    margin: 4px 0 18px;
    background: var(--surface);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-out-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sf-cell {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: var(--surface);
    box-shadow: var(--sh-in-sm);
    border-radius: var(--r-sm);
    padding: 12px 16px;
    transition: box-shadow 0.2s;
}

.sf-cell:focus-within {
    box-shadow: var(--sh-in-sm), 0 0 0 2px rgba(218, 37, 28, 0.3);
}

.sf-cell label,
.sf-label-row {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.sf-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sf-cell input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-family: inherit;
    font-size: 15px;
    color: var(--text);
    padding: 0;
}

.sf-cell input::placeholder {
    color: var(--muted);
}

.forgot-password-link {
    color: var(--text-soft);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: none;
    text-decoration: none;
}

.forgot-password-link:hover {
    color: var(--lisa-red);
}

.auth-cta {
    align-self: flex-start;
    width: auto;
    margin-top: 4px;
    padding: 15px 34px;
    background: var(--surface);
    color: var(--lisa-blue);
    box-shadow: var(--sh-out-sm);
    border-radius: var(--r-pill);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.auth-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--sh-out-md);
    color: var(--lisa-red);
}

.auth-cta:active {
    transform: translateY(0);
    box-shadow: var(--sh-in-sm);
}

/* Right info panel */
.auth-info-panel {
    background: var(--surface);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-in);
    padding: 32px 30px;
    height: 100%;
}

.auth-info-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--lisa-red);
    margin-bottom: 10px;
}

.auth-info-title {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 900;
    color: var(--lisa-blue);
    margin: 0 0 26px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.auth-info-title em {
    color: var(--lisa-red);
    font-style: italic;
}

.auth-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.as-num {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: var(--sh-out-sm);
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--yellow);
}

.auth-step strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--lisa-blue);
    margin-bottom: 2px;
}

.auth-step p {
    margin: 0;
    font-size: 12.5px;
    color: var(--text-soft);
    line-height: 1.5;
}

button {
    position: relative;
    width: 100%;
    padding: 15px;
    background: var(--surface);
    color: var(--lisa-red);
    border: none;
    border-radius: var(--r-pill);
    font-size: 15.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: var(--sh-out-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
    margin-top: 4px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: var(--sh-out-md);
    color: var(--lisa-red-deep);
}

button:active {
    transform: translateY(0);
    box-shadow: var(--sh-in-sm);
}

button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.auth-switch {
    text-align: left;
    margin-top: 4px;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.auth-switch a {
    color: var(--lisa-red);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    color: var(--lisa-blue);
}

.error-message {
    color: var(--lisa-red-deep);
    background: rgba(218, 37, 28, 0.10);
    border-radius: var(--r-sm);
    padding: 12px;
    margin-top: 4px;
    max-width: 480px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    display: none;
}

/* Home / Discipline Points Section Styles */
#homeSection,
#dpsSection {
    display: block;
    background: var(--bg);
    padding: 0;
    min-height: 100vh;
    align-items: flex-start;
}

/* Global topbar — geometry matched exactly (offsets/radius/shadow) to the
   Parent-Teacher Conference site's own .topbar so the header doesn't
   visibly shift when navigating between the two pages. */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--surface);
    border-radius: 24px;
    max-width: 1136px;
    width: calc(100% - 44px);
    margin: 28px auto 36px;
    padding: 12px 16px;
    box-shadow:
        10px 10px 28px rgba(180, 190, 210, 0.55),
        -10px -10px 28px rgba(255, 255, 255, 0.95);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    box-shadow: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    width: auto;
}

.brand:hover {
    transform: none;
    box-shadow: none;
    opacity: 0.8;
}

.brand-logo {
    width: 52px;
    height: 52px;
    border-radius: var(--r-md);
    background: var(--surface);
    box-shadow:
        4px 4px 10px rgba(180, 190, 210, 0.5),
        -4px -4px 10px rgba(255, 255, 255, 0.9);
    display: grid;
    place-items: center;
    padding: 6px;
    flex-shrink: 0;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.social-icons-group {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--lisa-blue);
    transition: color 0.18s, background 0.18s;
}

.nav-icon-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--yellow);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--surface);
    box-shadow: var(--sh-in-sm);
    border-radius: var(--r-pill);
    padding: 6px 14px;
    margin-left: 4px;
}

.lang-btn {
    width: auto;
    background: none;
    border: none;
    box-shadow: none;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--muted);
    padding: 2px 0;
    margin-top: 0;
    transition: color 0.2s;
}

.lang-btn:hover {
    background: none;
    box-shadow: none;
    transform: none;
    color: var(--lisa-blue);
}

.lang-btn.active {
    color: var(--lisa-red);
}

.lang-divider {
    font-size: 11px;
    color: var(--muted);
    opacity: 0.4;
}

.topbar-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 16px;
    margin-left: 2px;
    border-left: 1px solid rgba(160, 175, 205, 0.4);
}

.user-avatar {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--lisa-blue), #33335c);
    color: var(--lisa-white);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.75rem;
}

.user-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.1;
}

.user-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.user-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--lisa-blue);
    white-space: nowrap;
    text-decoration: underline;
    text-decoration-color: var(--yellow);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

#logoutBtn {
    width: auto;
    padding: 10px 20px;
    margin-top: 0;
    margin-left: 6px;
    background: var(--surface);
    color: var(--lisa-blue);
    box-shadow: var(--sh-out-sm);
    border-radius: var(--r-pill);
    font-size: 0.85rem;
    font-weight: 700;
}

#logoutBtn:hover {
    box-shadow: var(--sh-out-md);
    color: var(--lisa-red);
}

.eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--lisa-red);
    margin-bottom: 10px;
}

.dps-header {
    margin-bottom: 28px;
}

.page-heading {
    font-family: var(--font-display);
    color: var(--lisa-blue);
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    font-variation-settings: "opsz" 144;
    margin-bottom: 0;
}

main {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.dashboard-container {
    background: var(--surface);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-out);
    padding: 32px;
}

/* Student Selection / DPS tile */
.dps-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

/* Custom student dropdown (mirrors the campus-dropdown pattern used on the
   Parent-Teacher Conference site, so the two apps feel like one product) */
.student-dropdown {
    position: relative;
    flex: 1;
    min-width: 240px;
    max-width: 360px;
}

.sd-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 9px 16px;
    border: none;
    border-radius: var(--r-md);
    background: var(--surface);
    box-shadow: var(--sh-in-sm);
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: box-shadow 0.18s;
}

.sd-trigger:hover {
    transform: none;
    box-shadow: var(--sh-in-sm);
    color: var(--text);
}

.sd-trigger:active {
    transform: none;
}

.sd-trigger[aria-expanded="true"] {
    box-shadow: var(--sh-in-sm), 0 0 0 3px rgba(218, 37, 28, 0.15);
}

.sd-avatar {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--lisa-blue), #33335c);
    color: var(--lisa-white);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.85rem;
}

.sd-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.sd-label {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.sd-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sd-chevron {
    flex-shrink: 0;
    color: var(--muted);
    transition: transform 0.22s;
}

.sd-trigger[aria-expanded="true"] .sd-chevron {
    transform: rotate(180deg);
}

.sd-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--surface);
    border-radius: var(--r-md);
    box-shadow: var(--sh-out);
    overflow-y: auto;
    max-height: 300px;
    padding: 6px;
}

.sd-panel[hidden] {
    display: none;
}

.sd-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 9px 10px;
    border: none;
    border-radius: var(--r-sm);
    background: none;
    box-shadow: none;
    text-align: left;
    color: var(--text-soft);
    cursor: pointer;
    transition: background 0.14s, color 0.14s;
}

.sd-item:hover {
    transform: none;
    box-shadow: none;
    background: rgba(160, 175, 205, 0.14);
    color: var(--text);
}

.sd-item:active {
    transform: none;
    box-shadow: none;
}

.sd-item.selected {
    background: rgba(218, 37, 28, 0.08);
    color: var(--text);
}

.sd-item-avatar {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--surface-2);
    box-shadow: var(--sh-in-sm);
    color: var(--lisa-blue);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.72rem;
}

.sd-item.selected .sd-item-avatar {
    background: var(--lisa-red);
    color: var(--lisa-white);
    box-shadow: none;
}

.sd-item-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sd-item-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sd-item-grade {
    font-size: 0.74rem;
    color: var(--muted);
}

.sd-empty {
    padding: 16px 12px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
}

.student-dps-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--surface);
    border-radius: var(--r-md);
    padding: 9px 24px;
    box-shadow: var(--sh-out-sm);
    color: var(--text-soft);
}

.dps-tile-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: var(--lisa-red);
}

.dps-tile-icon svg {
    width: 100%;
    height: 100%;
}

.dps-tile-text {
    display: flex;
    flex-direction: column;
}

.dps-tile-text span {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.5rem;
    line-height: 1.1;
    color: var(--lisa-red);
}

.dps-tile-text span.positive {
    color: var(--green);
}

.dps-tile-text label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 2px;
}

/* Home page boxes */
.home-container {
    max-width: 900px;
    margin: 60px auto;
    width: 100%;
}

.home-intro {
    margin-bottom: 32px;
    text-align: center;
}

.home-intro h2 {
    font-family: var(--font-display);
    color: var(--lisa-blue);
    font-size: 1.9rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.home-intro-sub {
    color: var(--text-soft);
    margin: 0;
    font-size: 0.95rem;
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    max-width: 560px;
    margin: 0 auto;
}

.home-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    text-decoration: none;
    width: auto;
    background: var(--surface);
    border: none;
    border-radius: var(--r-xl);
    box-shadow: var(--sh-out-md);
    padding: 40px 24px;
    cursor: pointer;
    margin-top: 0;
    transition: transform 220ms ease, box-shadow 220ms ease, color 220ms ease;
}

.home-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-out);
}

.home-box-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: var(--lisa-red);
}

.home-box-icon svg {
    width: 100%;
    height: 100%;
}

.home-box:hover .home-box-icon {
    color: var(--lisa-red-deep);
}

.home-box-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--lisa-blue);
}

.home-box-sub {
    font-size: 0.82rem;
    color: var(--text-soft);
    font-weight: 400;
    line-height: 1.4;
}

/* Events Table Styles */
.events-section {
    margin-top: 28px;
}

.table-container {
    background: var(--surface-2);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-in-sm);
    overflow-x: auto;
}

#eventsTable {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
}

#eventsTable th {
    background: var(--lisa-blue);
    color: var(--lisa-white);
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

#eventsTable td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(160, 175, 205, 0.22);
    color: var(--text);
    font-size: 0.9rem;
}

#eventsTable tbody tr:nth-child(even) {
    background: rgba(160, 175, 205, 0.05);
}

#eventsTable tbody tr:hover {
    background: rgba(160, 175, 205, 0.13);
}

#eventsTable tbody tr:last-child td {
    border-bottom: none;
}

.cell-date {
    color: var(--text-soft);
    font-size: 0.85rem;
    white-space: nowrap;
}

.cell-points {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--text);
}

.cell-points.positive {
    color: var(--green);
}

.cell-points.negative {
    color: var(--lisa-red-deep);
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--r-pill);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.pill-prs {
    background: rgba(56, 161, 105, 0.14);
    color: var(--green);
}

.pill-dps {
    background: rgba(218, 37, 28, 0.12);
    color: var(--lisa-red-deep);
}

/* Highlight negative points rows in events table */
#eventsTable tbody tr.negative-row {
    background: rgba(218, 37, 28, 0.07) !important;
}

#eventsTable tbody tr.negative-row:hover {
    background: rgba(218, 37, 28, 0.13) !important;
}

.events-empty td {
    padding: 44px 16px;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

/* Loading Styles */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(232, 236, 242, 0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--surface);
    border-top: 4px solid var(--lisa-red);
    border-radius: 50%;
    box-shadow: var(--sh-out-sm);
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    main {
        padding: 20px;
    }

    .dashboard-container {
        padding: 20px;
    }

    .dps-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .student-dropdown {
        max-width: none;
        width: 100%;
        min-width: 0;
    }

    .student-dps-tile {
        justify-content: center;
    }
}

@media (max-width: 860px) {
    .login-card {
        padding: 28px;
        max-width: 480px;
    }

    .login-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .login-section {
        padding: 12px;
    }

    .login-card {
        padding: 20px;
    }

    .auth-form {
        padding: 18px;
    }

    .auth-title {
        font-size: 34px;
    }
}

