:root {
  --brand-red: #e4242c;
  --brand-red-dark: #c91f27;
  --brand-red-soft: #fff0f1;
  --brand-charcoal: #323232;
  --brand-gray: #565656;
  --page-gray: #e9e9e9;
  --panel-gray: #f4f4f4;
  --line: #e1e1e1;
  --text: #555555;
  --muted: #7a7a7a;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(38, 38, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page-gray);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(228, 36, 44, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(228, 36, 44, 0.035) 1px, transparent 1px),
    var(--page-gray);
  background-size: 48px 48px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

body > .container {
  width: 100%;
  max-width: none;
  padding: 0;
}

body > .container > main {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 2rem;
}

h1,
h2,
h3 {
  color: var(--brand-charcoal);
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.25rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.login-shell {
  position: relative;
  display: grid;
  width: min(1120px, 100%);
  min-height: 690px;
  overflow: hidden;
  grid-template-columns: 1.08fr 0.92fr;
  border: 1px solid rgba(50, 50, 50, 0.1);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.login-shell::before {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--brand-red);
  content: "";
}

.login-language {
  position: absolute;
  z-index: 5;
  top: 1.5rem;
  right: 1.5rem;
}

.language-selector {
  display: inline-flex;
  gap: 0.15rem;
  padding: 0.22rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
}

.language-selector button {
  min-width: 2.15rem;
  height: 2rem;
  padding: 0 0.45rem;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  transition: color 150ms ease, background 150ms ease;
}

.language-selector button:hover {
  color: var(--brand-red);
  background: var(--brand-red-soft);
}

.language-selector button.active {
  color: var(--white);
  background: var(--brand-red);
}

.brand-panel {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2.5rem, 6vw, 5rem);
  background: var(--panel-gray);
}

.brand-panel::after {
  position: absolute;
  right: -8rem;
  bottom: -10rem;
  width: 27rem;
  height: 27rem;
  border: 5rem solid rgba(228, 36, 44, 0.08);
  border-radius: 50%;
  content: "";
}

.brand-logo-link {
  position: absolute;
  z-index: 2;
  top: clamp(2.5rem, 6vw, 4.5rem);
  left: clamp(2.5rem, 6vw, 5rem);
  display: inline-block;
}

.brand-logo {
  display: block;
  width: min(240px, 44vw);
  height: auto;
}

.eyebrow,
.step-label {
  position: relative;
  z-index: 2;
  margin: 0 0 0.9rem;
  color: var(--brand-red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.brand-panel h1 {
  position: relative;
  z-index: 2;
  max-width: 540px;
  margin-bottom: 1.35rem;
  font-size: clamp(3rem, 5.2vw, 5rem);
  text-transform: uppercase;
}

.brand-panel > p:last-of-type {
  position: relative;
  z-index: 2;
  max-width: 430px;
  margin: 0;
  color: var(--brand-gray);
  font-size: 1rem;
  line-height: 1.7;
}

.brand-rings {
  position: absolute;
  z-index: 1;
  top: 25%;
  right: -4rem;
  width: 13rem;
  height: 13rem;
  transform: rotate(-18deg);
}

.brand-rings span {
  position: absolute;
  inset: 0;
  border: 2.4rem solid rgba(86, 86, 86, 0.06);
  border-radius: 50%;
}

.brand-rings span:last-child {
  inset: 3.2rem -3rem -3.2rem 3rem;
  border-color: rgba(228, 36, 44, 0.09);
}

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 6vw, 5rem);
  background: var(--white);
}

.login-panel h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.form-intro {
  max-width: 430px;
  margin: 0 0 2.25rem;
  color: var(--muted);
  line-height: 1.65;
}

.login-panel form:not(.language-selector) {
  display: flex;
  flex-direction: column;
}

.login-panel label {
  margin-bottom: 0.55rem;
  color: var(--brand-charcoal);
  font-size: 0.8rem;
  font-weight: 750;
}

.login-panel input:not([type="hidden"]) {
  width: 100%;
  height: 3.55rem;
  padding: 0 1.15rem;
  border: 1px solid #d5d5d5;
  border-radius: 12px;
  outline: 0;
  color: var(--brand-charcoal);
  background: #fafafa;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.login-panel input:hover {
  border-color: #bcbcbc;
  background: var(--white);
}

.login-panel input:focus {
  border-color: var(--brand-red);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(228, 36, 44, 0.11);
}

.login-panel .remember-login {
  display: flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.6rem;
  margin-top: 1rem;
  margin-bottom: 0;
  cursor: pointer;
  color: var(--muted);
  font-weight: 650;
}

.login-panel .remember-login input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  padding: 0;
  accent-color: var(--brand-red);
}

.login-panel button[type="submit"] {
  height: 3.5rem;
  margin-top: 1.4rem;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--brand-red);
  font-weight: 750;
  box-shadow: 0 8px 20px rgba(228, 36, 44, 0.22);
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.login-panel button[type="submit"]:hover {
  transform: translateY(-1px);
  background: var(--brand-red-dark);
  box-shadow: 0 10px 26px rgba(228, 36, 44, 0.28);
}

.code-input {
  font-family: Consolas, "SFMono-Regular", monospace !important;
  font-size: 1.45rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.34em;
  text-align: center;
}

.validation-message {
  margin-top: 0.45rem;
  color: #b42318;
  font-size: 0.8rem;
}

.validation-message:empty,
.validation-summary.validation-summary-valid {
  display: none;
}

.validation-summary ul {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.back-link {
  display: inline-block;
  margin-top: 1.35rem;
  color: var(--brand-red);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  color: var(--brand-red-dark);
  text-decoration: underline;
}

.login-success {
  margin: 0 0 1rem;
  color: #247044;
  font-size: 0.82rem;
  font-weight: 650;
}

.login-secondary-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.35rem;
}

.login-secondary-actions .back-link {
  margin-top: 0;
}

.login-panel .resend-form button[type="submit"] {
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  color: var(--brand-red);
  background: transparent;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: none;
}

.login-panel .resend-form button[type="submit"]:hover {
  transform: none;
  color: var(--brand-red-dark);
  background: transparent;
  box-shadow: none;
  text-decoration: underline;
}

.privacy-note {
  margin: auto 0 0;
  padding-top: 2.5rem;
  color: #999999;
  font-size: 0.72rem;
}

.portal-shell {
  width: min(1220px, 100%);
  min-height: calc(100vh - 4rem);
  overflow: hidden;
  border: 1px solid rgba(50, 50, 50, 0.1);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.portal-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  padding: 1.15rem clamp(1.5rem, 4vw, 3.25rem);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.portal-header::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--brand-red);
  content: "";
}

.portal-header > div,
.portal-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.portal-logo {
  display: block;
  width: 165px;
  height: auto;
}

.portal-logo-link {
  display: inline-block;
  border-radius: 8px;
}

.portal-logo-link:focus-visible {
  outline: 3px solid rgba(228, 36, 44, 0.28);
  outline-offset: 0.35rem;
}

.logout-button {
  min-height: 2.45rem;
  padding: 0.55rem 1rem;
  border: 1px solid #d2d2d2;
  border-radius: 999px;
  color: var(--brand-charcoal);
  background: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.logout-button:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
  background: var(--brand-red-soft);
}

.portal-content {
  padding: clamp(2.25rem, 6vw, 5rem);
  background:
    linear-gradient(115deg, rgba(228, 36, 44, 0.035), transparent 45%),
    var(--panel-gray);
}

.portal-content > h1 {
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}

.portal-welcome {
  margin: 0 0 3rem;
  color: var(--muted);
}

.portal-notice {
  padding: 1.1rem 1.3rem;
  border: 1px solid #f0c5c8;
  border-left: 4px solid var(--brand-red);
  border-radius: 10px;
  color: var(--brand-gray);
  background: var(--white);
}

.portal-notice-error {
  color: #8f2d24;
  background: #fff6f6;
}

.student-selector {
  padding: 1.75rem;
  border: 1px solid #dddddd;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 6px 22px rgba(50, 50, 50, 0.06);
}

.student-selector-heading > p:first-child {
  margin: 0 0 0.25rem;
  color: var(--brand-red);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.student-selector-heading h2 {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 780;
  letter-spacing: -0.025em;
}

.student-selector-heading > p:last-child {
  margin: 0.55rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.student-selector-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.student-selector-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem;
  border: 1px solid #e0e0e0;
  border-radius: 13px;
  color: var(--brand-charcoal);
  background: #fcfcfc;
  text-decoration: none;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.student-selector-card:hover,
.student-selector-card:focus-visible {
  transform: translateY(-2px);
  border-color: #efabad;
  color: var(--brand-charcoal);
  box-shadow: 0 8px 20px rgba(50, 50, 50, 0.08);
}

.student-selector-card .student-avatar {
  width: 2.9rem;
  height: 2.9rem;
  box-shadow: 0 0 0 4px var(--brand-red-soft);
}

.student-selector-name {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.student-selector-name strong {
  overflow: hidden;
  font-size: 0.98rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-selector-name small {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.student-selector-arrow {
  flex: 0 0 auto;
  color: var(--brand-red);
  font-size: 1.25rem;
  font-weight: 800;
}

.change-student-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1rem;
  color: var(--brand-red);
  font-size: 0.84rem;
  font-weight: 750;
  text-decoration: none;
}

.change-student-link:hover,
.change-student-link:focus-visible {
  color: var(--brand-red-dark);
  text-decoration: underline;
}

.student-card {
  overflow: hidden;
  border: 1px solid #dddddd;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 6px 22px rgba(50, 50, 50, 0.06);
}

.student-card + .student-card {
  margin-top: 1.25rem;
}

.student-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid #e7e7e7;
  background: var(--white);
}

.student-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 3.35rem;
  height: 3.35rem;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--brand-red);
  font-size: 1.35rem;
  font-weight: 800;
  box-shadow: 0 0 0 6px var(--brand-red-soft);
}

.student-heading p {
  margin: 0 0 0.2rem;
  color: var(--brand-red);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.student-heading h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.student-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.student-data div {
  min-width: 0;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e9e9e9;
}

.student-data div:nth-child(odd) {
  border-right: 1px solid #e9e9e9;
}

.student-data dt {
  margin-bottom: 0.4rem;
  color: #8a8a8a;
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.student-data dd {
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--brand-charcoal);
  font-size: 0.92rem;
  font-weight: 600;
}

.student-documents-section {
  padding: 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.student-documents-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.student-documents-heading p {
  margin: 0 0 0.2rem;
  color: var(--brand-red);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.student-documents-heading h3 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 780;
  letter-spacing: -0.025em;
}

.student-documents-heading > span {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  color: var(--brand-red-dark);
  background: var(--brand-red-soft);
  font-size: 0.7rem;
  font-weight: 750;
}

.student-documents-intro {
  margin: 0.55rem 0 1.25rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.documents-notice {
  padding: 1rem 1.1rem;
  border: 1px solid #e1e1e1;
  border-radius: 12px;
  color: var(--muted);
  background: #fafafa;
  font-size: 0.86rem;
}

.documents-notice-error {
  border-color: #f0c5c8;
  color: #8f2d24;
  background: #fff6f6;
}

.drive-folder {
  overflow: hidden;
  border: 1px solid #d7d7d7;
  border-radius: 14px;
  background: #fafafa;
  box-shadow: 0 5px 18px rgba(50, 50, 50, 0.045);
}

.drive-folder + .drive-folder {
  margin-top: 1rem;
}

.drive-folder-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #dddddd;
  background: #f7f7f7;
}

.drive-folder-toolbar h4 {
  margin: 0;
  overflow: hidden;
  font-size: 0.92rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drive-folder-toolbar a {
  flex: 0 0 auto;
  color: var(--brand-red-dark);
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: none;
}

.drive-folder-toolbar a:hover,
.drive-folder-toolbar a:focus-visible {
  text-decoration: underline;
}

.drive-folder-frame {
  display: block;
  width: 100%;
  height: 340px;
  border: 0;
  background: var(--white);
}

.class-calendar-section {
  padding: 1.5rem;
  border-top: 1px solid var(--line);
  background: #fcfcfc;
}

.class-calendar-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.class-calendar-heading p {
  margin: 0 0 0.2rem;
  color: var(--brand-red);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.class-calendar-heading h3 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 780;
  letter-spacing: -0.025em;
}

.class-calendar-heading > span {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  color: var(--brand-red-dark);
  background: var(--brand-red-soft);
  font-size: 0.7rem;
  font-weight: 750;
}

.class-calendar-intro {
  margin: 0.55rem 0 1.25rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.class-calendar-status {
  min-height: 1.5rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.calendar-error {
  color: #9b2c24;
}

.class-calendar {
  --fc-classic-button: var(--brand-charcoal);
  --fc-classic-button-border: var(--brand-charcoal);
  --fc-classic-button-strong: var(--brand-red-dark);
  --fc-classic-button-strong-border: var(--brand-red-dark);
  --fc-classic-button-outline: rgba(228, 36, 44, 0.22);
  --fc-classic-primary: var(--brand-red);
  --fc-classic-event: var(--brand-red);
  --fc-classic-event-contrast: var(--white);
  --fc-classic-today: rgba(228, 36, 44, 0.07);
  --fc-classic-border: #d9d9d9;
  --fc-classic-strong-border: #bdbdbd;
  min-height: 420px;
  padding: 1rem;
  overflow: hidden;
  border: 1px solid #d7d7d7;
  border-radius: 14px;
  color: var(--brand-charcoal);
  background: var(--white);
  font-size: 0.82rem;
  box-shadow: 0 5px 18px rgba(50, 50, 50, 0.045);
}

.class-calendar button {
  border-radius: 8px !important;
  font-weight: 750 !important;
  box-shadow: none !important;
}

.class-calendar button + button {
  margin-left: 0.45rem !important;
}

.class-calendar a {
  color: inherit;
  text-decoration: none;
}

.class-calendar table {
  margin: 0;
}

.aaprendre-calendar-day {
  min-height: 7rem;
  background: var(--white);
  transition: background 120ms ease;
}

.aaprendre-calendar-day:hover {
  background: #fffafa;
}

.aaprendre-calendar-day-header {
  color: #777777;
  background: #f6f6f6;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.class-calendar .aaprendre-calendar-event {
  width: calc(100% - 0.4rem);
  margin: 0.15rem 0.2rem;
  padding: 0.35rem 0.45rem !important;
  overflow: hidden;
  border: 0 !important;
  border-left: 3px solid #a9161d !important;
  border-radius: 7px !important;
  color: var(--white) !important;
  background: var(--brand-red) !important;
  box-shadow: 0 2px 6px rgba(228, 36, 44, 0.2) !important;
  text-align: left;
  transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.class-calendar .aaprendre-calendar-event:hover,
.class-calendar .aaprendre-calendar-event:focus-visible {
  z-index: 2;
  transform: translateY(-1px);
  background: var(--brand-red-dark) !important;
  box-shadow: 0 4px 10px rgba(228, 36, 44, 0.28) !important;
}

.class-calendar .aaprendre-calendar-event.event-state-5 {
  border-left-color: #5f2f0d !important;
  background: #8b4513 !important;
  box-shadow: 0 2px 6px rgba(139, 69, 19, 0.22) !important;
}

.class-calendar .aaprendre-calendar-event.event-state-5:hover,
.class-calendar .aaprendre-calendar-event.event-state-5:focus-visible {
  background: #703810 !important;
  box-shadow: 0 4px 10px rgba(139, 69, 19, 0.3) !important;
}

.aaprendre-event-content {
  display: block;
  min-width: 0;
  line-height: 1.25;
}

.aaprendre-event-time {
  display: block;
  margin-bottom: 0.12rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.015em;
}

.aaprendre-event-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.class-details-dialog {
  width: min(480px, calc(100% - 2rem));
  padding: 2rem;
  border: 0;
  border-top: 5px solid var(--brand-red);
  border-radius: 16px;
  color: var(--text);
  background: var(--white);
  box-shadow: var(--shadow);
}

.class-details-dialog::backdrop {
  background: rgba(30, 30, 30, 0.55);
  backdrop-filter: blur(2px);
}

.class-details-dialog h2 {
  margin: 0 2rem 0.5rem 0;
  font-size: 1.55rem;
  font-weight: 780;
}

.class-details-time {
  margin-bottom: 1.5rem;
  color: var(--muted);
  text-transform: capitalize;
}

.class-details-dialog dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.class-details-dialog dl div {
  padding: 1rem;
  border-radius: 10px;
  background: var(--panel-gray);
}

.class-details-dialog dt {
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-size: 0.67rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.class-details-dialog dd {
  margin: 0;
  color: var(--brand-charcoal);
  font-weight: 700;
}

.dialog-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--brand-charcoal);
  background: var(--panel-gray);
  font-size: 1.4rem;
  line-height: 1;
}

.dialog-close:hover {
  color: var(--white);
  background: var(--brand-red);
}

.simple-page {
  width: min(680px, 100%);
  padding: clamp(2.25rem, 6vw, 4rem);
  border-top: 5px solid var(--brand-red);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.simple-page h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  text-transform: uppercase;
}

.simple-page > p {
  color: var(--muted);
  line-height: 1.65;
}

.request-id {
  margin-top: 2rem;
  font-size: 0.76rem;
}

@media (max-width: 820px) {
  body > .container > main {
    display: block;
    padding: 0;
  }

  .login-shell {
    width: 100%;
    min-height: 100vh;
    grid-template-columns: 1fr;
    border: 0;
    border-radius: 0;
  }

  .brand-panel {
    min-height: 310px;
    justify-content: flex-end;
    padding: 6.5rem 1.5rem 2rem;
  }

  .brand-logo-link {
    top: 1.75rem;
    left: 1.5rem;
  }

  .brand-logo {
    width: 170px;
  }

  .brand-panel h1 {
    margin-bottom: 0;
    font-size: clamp(2.25rem, 11vw, 3.25rem);
  }

  .brand-panel > p:last-of-type,
  .brand-rings {
    display: none;
  }

  .login-language {
    top: 1.25rem;
    right: 1.25rem;
  }

  .login-panel {
    min-height: calc(100vh - 310px);
    justify-content: flex-start;
    padding: 2.5rem 1.5rem;
  }

  .portal-shell {
    width: 100%;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .portal-header {
    align-items: flex-start;
    min-height: 118px;
  }

  .portal-logo {
    width: 135px;
  }

  .portal-actions {
    align-items: flex-end;
    flex-direction: column;
    gap: 0.5rem;
  }

  .portal-content {
    min-height: calc(100vh - 118px);
    padding: 2.5rem 1.25rem;
  }

  .student-data {
    grid-template-columns: 1fr;
  }

  .student-selector {
    padding: 1.25rem 1rem;
  }

  .student-selector-list {
    grid-template-columns: 1fr;
  }

  .student-data div:nth-child(odd) {
    border-right: 0;
  }

  .student-documents-section {
    padding: 1.25rem 1rem;
  }

  .student-documents-heading {
    align-items: flex-start;
  }

  .drive-folder-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.4rem;
  }

  .drive-folder-toolbar h4 {
    width: 100%;
  }

  .drive-folder-frame {
    height: 360px;
  }

  .class-calendar-section {
    padding: 1.25rem 1rem;
  }

  .class-calendar-heading {
    align-items: flex-start;
  }

  .class-calendar {
    min-height: 360px;
    padding: 0.75rem;
    font-size: 0.78rem;
  }

  .class-calendar button {
    padding: 0.45rem 0.6rem !important;
    font-size: 0.72rem !important;
  }

  .class-calendar .aaprendre-calendar-event {
    padding: 0.7rem 0.8rem !important;
    border-left-width: 4px !important;
  }

  .aaprendre-event-time {
    margin-bottom: 0.25rem;
    font-size: 0.72rem;
  }

  .aaprendre-event-title {
    font-size: 0.82rem;
    -webkit-line-clamp: 3;
  }

  .class-details-dialog dl {
    grid-template-columns: 1fr;
  }

  .simple-page {
    min-height: 100vh;
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
