/* ═══════════════════════════════════════════
   Общие стили для внутренних страниц
   (кабинет ученика и админка).
   Лендинг index.html их не использует —
   у него свой встроенный <style>.
   ═══════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --aura-pink:  #ffd1df;
  --aura-blue:  #d1e8ff;
  --aura-peach: #ffe8d6;
  --glass-bg:       rgba(255,255,255,0.42);
  --glass-bg-heavy: rgba(255,255,255,0.60);
  --glass-border:   rgba(255,255,255,0.82);
  --glass-inset:    inset 0 0 24px rgba(255,255,255,0.55);
  --glass-shadow:   0 30px 70px rgba(120,130,180,0.10), 0 4px 16px rgba(120,130,180,0.07);
  --text-title: #1d1d1f;
  --text-body:  #515154;
  --text-hint:  #a0a0a8;
  --blue:       #0066cc;
  --blue-tag:   rgba(0,102,204,0.10);
  --green:      #34a853;
  --amber:      #e8a33d;
  --radius-xl:  30px;
  --radius-lg:  22px;
  --radius-md:  14px;
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo:   cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', -apple-system, sans-serif;
  background: #fafafa;
  color: var(--text-title);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
}

/* ─── АУРА ─── */
.aura-wrap { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aura { position: absolute; border-radius: 50%; filter: blur(90px); animation: auraDrift 22s ease-in-out infinite alternate; }
.aura-1 { width:70vw;height:70vw;top:-25%;left:-15%;background:radial-gradient(circle,var(--aura-pink) 0%,transparent 65%);opacity:.7; }
.aura-2 { width:60vw;height:60vw;bottom:-20%;right:-10%;background:radial-gradient(circle,var(--aura-blue) 0%,transparent 65%);opacity:.75;animation-delay:-8s; }
.aura-3 { width:45vw;height:45vw;top:40%;left:35%;background:radial-gradient(circle,var(--aura-peach) 0%,transparent 65%);opacity:.4;animation-delay:-14s;animation-duration:28s; }
@keyframes auraDrift {
  0%   { transform: translate(0,0) scale(1); }
  33%  { transform: translate(3%,4%) scale(1.04); }
  66%  { transform: translate(-2%,2%) scale(0.97); }
  100% { transform: translate(2%,-3%) scale(1.02); }
}

/* ─── КАРКАС ─── */
.page { position: relative; z-index: 1; }
.container { max-width: 940px; margin: 0 auto; padding: 0 24px; }

/* ─── СТЕКЛО ─── */
.g {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-inset);
  border-radius: var(--radius-xl);
}

/* ─── ШАПКА ─── */
.top { display: flex; align-items: center; justify-content: space-between; padding: 26px 0 34px; }
.logo { font-size: 17px; font-weight: 800; letter-spacing: -0.6px; color: var(--text-title); text-decoration: none; }
.logo-dot { color: var(--blue); }

/* ─── ТИПОГРАФИКА ─── */
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: var(--blue); text-transform: uppercase; }
.h1 { font-size: clamp(28px,4vw,40px); font-weight: 900; letter-spacing: -1.6px; line-height: 1.08; }
.h2 { font-size: 17px; font-weight: 800; letter-spacing: -0.5px; }
.muted { color: var(--text-body); font-size: 14px; line-height: 1.6; }
.hint { color: var(--text-hint); font-size: 12px; font-weight: 500; }

/* ─── КНОПКИ ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--text-title); color: #fff; border: none; border-radius: 100px;
  padding: 12px 22px; font-family: 'Montserrat',sans-serif; font-size: 14px; font-weight: 700;
  cursor: pointer; text-decoration: none;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s, background 0.25s, opacity 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(29,29,31,0.22); }
.btn:disabled { opacity: 0.5; pointer-events: none; }
.btn.ghost { background: transparent; color: var(--text-title); border: 1.5px solid rgba(29,29,31,0.14); }
.btn.ghost:hover { background: var(--text-title); color: #fff; }
.btn.sm { padding: 8px 16px; font-size: 12.5px; font-weight: 600; }
.btn.tiny { padding: 6px 12px; font-size: 11.5px; font-weight: 600; border-radius: 100px; }
.btn.tint { background: var(--blue-tag); color: var(--blue); }
.btn.tint:hover { background: var(--blue); color: #fff; }
.btn.danger { background: transparent; color: #c0392b; border: 1.5px solid rgba(192,57,43,0.2); }
.btn.danger:hover { background: #c0392b; color: #fff; }

/* ─── ПОЛЯ ─── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-hint); }
.input {
  width: 100%; background: rgba(255,255,255,0.72); border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--radius-md); padding: 11px 14px;
  font-family: 'Montserrat',sans-serif; font-size: 14px; font-weight: 500; color: var(--text-title);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus { border-color: rgba(0,102,204,0.45); box-shadow: 0 0 0 4px rgba(0,102,204,0.10); }
.input.err { border-color: rgba(220,80,80,0.6); }

/* ─── ПЕРЕКЛЮЧАТЕЛЬ ─── */
.seg { display: flex; gap: 4px; background: rgba(255,255,255,0.55); border: 1px solid rgba(255,255,255,0.9); border-radius: 100px; padding: 4px; }
.seg button {
  flex: 1; border: none; background: transparent; border-radius: 100px; padding: 8px 10px;
  font-family: 'Montserrat',sans-serif; font-size: 12.5px; font-weight: 600; color: var(--text-body);
  cursor: pointer; transition: background 0.22s, color 0.22s; white-space: nowrap;
}
.seg button:hover { background: rgba(255,255,255,0.8); }
.seg button.on { background: var(--text-title); color: #fff; }

/* ─── ПРОЧЕЕ ─── */
.avatar { border-radius: 50%; overflow: hidden; flex-shrink: 0; display: block; }
.row { display: flex; align-items: center; gap: 12px; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--text-title); color: #fff; border-radius: 100px; padding: 11px 22px;
  font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; z-index: 300;
  transition: opacity 0.3s, transform 0.35s var(--ease-spring);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.fade-in { opacity: 0; animation: fadeUp 0.6s var(--ease-expo) forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.d1 { animation-delay: 0.05s } .d2 { animation-delay: 0.12s } .d3 { animation-delay: 0.19s } .d4 { animation-delay: 0.26s }

@media (max-width: 600px) {
  .container { padding: 0 16px; }
}
