@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Libre+Baskerville:wght@400;700&display=swap');

:root {
    --ink: #120817;
    --wine: #6f0e35;
    --wine-bright: #b51e58;
    --gold: #dca52b;
    --gold-pale: #f9e6b1;
    --paper: #f4dfb0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--gold-pale);
    background: var(--ink);
    font-family: 'Libre Baskerville', Georgia, serif;
}
.login-page {
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: clamp(.75rem, 3vh, 2rem) 1.25rem;
    background: radial-gradient(circle at center, #35132d 0%, var(--ink) 62%);
}
.login-card {
    width: min(100%, 25rem);
    padding: clamp(1rem, 4vh, 2.5rem) 2rem clamp(1rem, 3vh, 2rem);
    border: 1px solid rgba(220, 165, 43, .5);
    background: rgba(18, 8, 23, .9);
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .35);
    text-align: center;
}
.login-logo {
    display: block;
    width: min(100%, clamp(8rem, 28vh, 14rem));
    aspect-ratio: 1;
    margin: 0 auto clamp(.75rem, 2vh, 1.5rem);
    object-fit: cover;
    border-radius: 50%;
}
.login-card h1 { margin: 0 0 clamp(.75rem, 2vh, 1.5rem); color: var(--gold-pale); font: 600 clamp(1.5rem, 4vh, 2rem) Cinzel, Georgia, serif; }
.login-form { display: grid; gap: .6rem; text-align: left; }
.login-form label { color: var(--paper); font-size: .9rem; }
.login-form input {
    width: 100%;
    margin-bottom: .7rem;
    padding: clamp(.65rem, 1.7vh, .9rem) 1rem;
    border: 1px solid rgba(220, 165, 43, .7);
    background: rgba(10, 3, 15, .8);
    color: white;
    font: inherit;
}
.login-form button {
    margin-top: .5rem;
    padding: clamp(.7rem, 1.8vh, 1rem);
    border: 1px solid var(--gold);
    background: var(--wine-bright);
    color: white;
    cursor: pointer;
    font: 700 1rem Cinzel, serif;
}
.login-form button:hover { background: #cf2869; }
.login-error { margin: .5rem 0 0; color: #ffb3c7; font-size: .85rem; line-height: 1.4; }
.schedule-page { min-height: 100vh; padding: 3rem 1.25rem; background: radial-gradient(circle at top, #35132d 0%, var(--ink) 58%); }
.schedule-content { width: min(100%, 70rem); margin: 0 auto; }
.schedule-header { display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin-bottom: 1.5rem; }
.schedule-heading h1 { margin-bottom: .25rem; }
.schedule-heading p { margin: 0; color: var(--gold); }
.schedule-user { display: flex; align-items: center; gap: .9rem; }
.schedule-login { color: var(--gold-pale); font: 700 .9rem Cinzel, Georgia, serif; }
.schedule-logo { width: 4.5rem; height: 4.5rem; object-fit: cover; border-radius: 50%; border: 1px solid rgba(220, 165, 43, .6); }
.schedule-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.schedule-nav { display: flex; gap: .75rem; flex-wrap: wrap; }
.schedule-nav a { padding: .8rem 1rem; border: 1px solid var(--gold); color: white; text-decoration: none; font: 700 .85rem Cinzel, serif; }
.schedule-nav a:hover { background: var(--wine-bright); }
.period-nav, .view-switch { display: flex; gap: .5rem; }
.period-nav a, .view-switch a { padding: .7rem .8rem; border: 1px solid rgba(220, 165, 43, .6); color: white; text-decoration: none; font: 700 .75rem Cinzel, serif; }
.period-nav a:hover, .view-switch a:hover, .view-switch .is-active { background: var(--wine-bright); }
.list-view { display: grid; gap: 1rem; }
.schedule-list-block { border: 1px solid rgba(220, 165, 43, .35); background: rgba(18, 8, 23, .88); }
.list-day-header { padding: .9rem 1.1rem; border-bottom: 1px solid rgba(220, 165, 43, .35); }
.list-day-header h2 { margin: 0; color: var(--gold-pale); font: 700 1.1rem Cinzel, Georgia, serif; }
.list-lessons { width: 100%; border-collapse: collapse; table-layout: fixed; }
.list-lessons th, .list-lessons td { padding: .9rem 1.1rem; border-bottom: 1px solid rgba(220, 165, 43, .16); text-align: left; vertical-align: middle; }
.list-lessons thead th { color: var(--gold); font: 700 .7rem Cinzel, Georgia, serif; letter-spacing: .02em; text-transform: uppercase; }
.list-lessons th:first-child { width: 25%; }
.list-lessons th:nth-child(2) { width: 43%; }
.list-lessons th:nth-child(3), .list-lessons th:nth-child(4) { width: 16%; }
.list-lesson:last-child th, .list-lesson:last-child td { border-bottom: 0; }
.list-lesson > th { color: var(--gold-pale); }
.list-lesson time, .list-lesson strong { display: block; }
.list-lesson time { margin-bottom: .25rem; color: var(--gold); font-weight: 700; }
.list-lesson strong { font: 700 .95rem Cinzel, Georgia, serif; }
.lesson-homework { color: var(--paper); font-size: .85rem; line-height: 1.45; }
.lesson-rating { text-align: center !important; }
.rating-number { display: block; color: var(--gold-pale); font: 700 1.8rem Cinzel, Georgia, serif; line-height: 1; }
.rating-stars { display: flex; justify-content: center; gap: .08rem; margin-top: .4rem; color: rgba(220, 165, 43, .25); font-size: .78rem; line-height: 1; }
.rating-empty { color: rgba(249, 230, 177, .45); font-size: 1.4rem; }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .7rem; }
.month-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.day-card { min-height: 18rem; border: 1px solid rgba(220, 165, 43, .35); background: rgba(18, 8, 23, .88); }
.day-header { padding: .9rem .75rem; border-bottom: 1px solid rgba(220, 165, 43, .35); }
.day-header h2 { margin: 0; color: var(--gold-pale); font-size: .95rem; }
.day-header time { display: block; margin-top: .35rem; color: var(--gold); font-size: .8rem; }
.day-lessons { display: grid; gap: .6rem; padding: .7rem; }
.lesson-card { display: grid; gap: .3rem; padding: .75rem; border-left: 3px solid var(--wine-bright); background: rgba(111, 14, 53, .35); }
.lesson-card strong { color: var(--gold-pale); font: 700 .9rem Cinzel, serif; }
.lesson-card time { color: var(--gold); font-weight: 700; }
.lesson-card span { color: var(--paper); font-size: .75rem; line-height: 1.4; }
.section-page { min-height: 100vh; padding: 3rem 1.25rem; background: radial-gradient(circle at top, #35132d 0%, var(--ink) 58%); }
.section-content { width: min(100%, 56rem); margin: 0 auto; }
.section-content h1 { margin: .5rem 0 2rem; }
.section-back { display: inline-block; margin-bottom: 2rem; color: var(--gold); text-decoration: none; font: 700 .8rem Cinzel, serif; }
.student-summary { display: grid; justify-items: center; gap: .8rem; margin: 0 auto 2.5rem; padding: 1.5rem; border: 1px solid rgba(220, 165, 43, .35); background: rgba(18, 8, 23, .88); }
.student-login { color: var(--gold-pale); font: 700 1rem Cinzel, Georgia, serif; }
.student-photo { width: 24rem; height: 24rem; object-fit: cover; border: 2px solid var(--gold); border-radius: 50%; }
.student-rating { display: flex; gap: .15rem; color: rgba(220, 165, 43, .25); font-size: 2rem; line-height: 1; }
.rating-star { background: linear-gradient(90deg, var(--gold) var(--star-fill), rgba(220, 165, 43, .25) var(--star-fill)); background-clip: text; -webkit-background-clip: text; color: transparent; }
.average-grade { color: var(--paper); font-size: .85rem; }
.data-list { display: grid; gap: .8rem; }
.data-item { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 1rem 1.25rem; border-left: 3px solid var(--wine-bright); background: rgba(18, 8, 23, .88); }
.data-item strong { color: var(--gold-pale); font-family: Cinzel, Georgia, serif; }
.data-item time { color: var(--gold); font-weight: 700; }
.data-item span { grid-column: 1 / -1; color: var(--paper); }
.empty-data { min-height: 8rem; background: rgba(18, 8, 23, .88); }
@media (max-width: 760px) {
    .login-card { padding: 2rem 1.25rem 1.5rem; }
    .schedule-page { padding: 2rem 1.25rem; }
    .schedule-header { align-items: start; }
    .schedule-user { flex-direction: column-reverse; align-items: end; gap: .45rem; }
    .schedule-toolbar { display: grid; grid-template-columns: 1fr; align-items: stretch; }
    .schedule-nav, .period-nav, .view-switch { justify-content: center; }
    .week-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .list-lessons th, .list-lessons td { padding: .75rem .55rem; }
    .list-lessons thead th { font-size: .58rem; }
    .list-lessons th:first-child { width: 24%; }
    .list-lessons th:nth-child(2) { width: 36%; }
    .list-lessons th:nth-child(3), .list-lessons th:nth-child(4) { width: 20%; }
    .rating-number { font-size: 1.4rem; }
    .rating-stars { font-size: .62rem; }
    .data-item { grid-template-columns: 1fr; }
}
