@import url('data:text/css,');

:root {
  color-scheme: light;
  --ink: #17352a;
  --ink-soft: #5f7069;
  --forest: #163b2c;
  --forest-2: #22523d;
  --lime: #dff36b;
  --lime-strong: #c9e64f;
  --paper: #f4f6f1;
  --card: #ffffff;
  --line: #e2e8e1;
  --blue: #4778e8;
  --violet: #8c65d8;
  --amber: #d98c35;
  --shadow: 0 18px 55px rgba(34, 61, 49, 0.09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
button, input { font: inherit; }
button { cursor: pointer; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); background: var(--paper); }

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 820; letter-spacing: -0.02em; }
.brand--light { color: white; }
.brand__mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: var(--forest); background: var(--lime); font-size: 18px; font-weight: 900; box-shadow: 0 8px 22px rgba(0,0,0,.14); }
.eyebrow { margin: 0 0 8px; color: #8a9a93; font-size: 11px; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow--green { color: #4f7f68; }
.muted { color: var(--ink-soft); }

.login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(390px, .95fr) 1.2fr; background: white; }
.brand-panel { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: 42px 7vw 58px; color: white; background: radial-gradient(circle at 75% 70%, #2a674b 0, transparent 35%), linear-gradient(145deg, #123626, #1c4b37); }
.brand-panel::after { content: ""; position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(115deg, transparent 45%, rgba(255,255,255,.2) 45.3%, transparent 45.6%); background-size: 50px 50px; }
.brand-panel > * { position: relative; z-index: 1; }
.brand-panel__copy { max-width: 580px; padding: 80px 0; }
.brand-panel__copy .eyebrow { color: var(--lime); }
.brand-panel__copy h1 { margin: 0; max-width: 620px; font-size: clamp(46px, 5.6vw, 82px); line-height: .98; letter-spacing: -.06em; }
.brand-panel__copy p:last-child { max-width: 470px; margin: 30px 0 0; color: #c9d7d0; font-size: 19px; line-height: 1.6; }
.orbit { position: absolute; right: -40px; bottom: -80px; width: 290px; height: 290px; border: 1px solid rgba(223,243,107,.26); border-radius: 50%; }
.orbit span { position: absolute; border: 1px solid rgba(223,243,107,.22); border-radius: 50%; }
.orbit span:nth-child(1) { inset: 35px; }
.orbit span:nth-child(2) { inset: 75px; }
.orbit span:nth-child(3) { top: 36px; left: 45%; width: 16px; height: 16px; border: 0; background: var(--lime); box-shadow: 0 0 25px var(--lime); }
.login-card-wrap { display: grid; place-items: center; padding: 42px; }
.login-card { width: min(440px, 100%); }
.mobile-brand { display: none; }
.login-card h2 { margin: 0; font-size: clamp(32px, 4vw, 46px); letter-spacing: -.05em; }
.login-card > .muted { margin: 14px 0 34px; line-height: 1.6; }
.login-card label { display: block; margin: 19px 0 8px; font-size: 13px; font-weight: 760; }
.login-card input { width: 100%; height: 54px; padding: 0 16px; color: var(--ink); background: #f8faf7; border: 1px solid #dbe3db; border-radius: 13px; outline: 0; transition: .18s ease; }
.login-card input:focus { border-color: #5f886f; box-shadow: 0 0 0 4px rgba(70,121,91,.11); background: white; }
.password-field { position: relative; }
.password-field input { padding-right: 90px; }
.icon-button { position: absolute; right: 8px; top: 8px; height: 38px; padding: 0 10px; color: #50645a; background: transparent; border: 0; border-radius: 8px; font-size: 12px; font-weight: 750; }
.icon-button:hover { background: #eaf0e9; }
.form-error { margin: 15px 0 0; padding: 12px 14px; color: #8d2d2d; background: #fff0ef; border: 1px solid #f3d1ce; border-radius: 11px; font-size: 13px; }
.privacy-note { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; color: #75837c; font-size: 12px; }
.privacy-note span { color: #65a37e; font-size: 8px; }

.button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 11px; font-size: 13px; font-weight: 780; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { cursor: default; opacity: .65; }
.button--wide { width: 100%; min-height: 54px; margin-top: 22px; display: flex; justify-content: center; align-items: center; gap: 12px; }
.button--primary { color: var(--forest); background: var(--lime); box-shadow: 0 8px 22px rgba(180,207,60,.18); }
.button--primary:hover:not(:disabled) { background: var(--lime-strong); box-shadow: 0 11px 26px rgba(180,207,60,.28); }
.button--ghost { color: #426052; background: #edf2ed; }
.button--dark { color: white; background: var(--forest); }

.app-layout { min-height: 100vh; }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; display: flex; flex-direction: column; width: 235px; padding: 30px 20px 22px; background: white; border-right: 1px solid var(--line); }
.sidebar .brand { padding: 0 8px 28px; }
.nav-list { display: grid; gap: 5px; margin-top: 18px; }
.nav-item { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 45px; padding: 0 13px; color: #627169; background: transparent; border: 0; border-radius: 11px; font-size: 14px; font-weight: 720; text-align: left; }
.nav-item span { width: 20px; color: #8b9992; text-align: center; }
.nav-item:hover { background: #f2f5f0; color: var(--ink); }
.nav-item.is-active { color: var(--forest); background: #eff5e5; }
.nav-item.is-active span { color: #6b8726; }
.sidebar__bottom { display: grid; gap: 4px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.mobile-header, .bottom-nav { display: none; }

.dashboard { width: calc(100% - 235px); max-width: 1300px; min-height: 100vh; margin-left: 235px; padding: 48px clamp(30px, 5vw, 76px) 70px; }
.dashboard__header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 26px; }
.dashboard__header h1 { margin: 0; font-size: clamp(32px, 4vw, 48px); letter-spacing: -.055em; }
.dashboard__header .muted { margin: 8px 0 0; }
.profile-pill { display: flex; align-items: center; gap: 11px; min-width: 145px; padding: 8px 12px 8px 8px; background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 25px rgba(40,60,50,.05); }
.profile-pill > span, .avatar { display: grid; place-items: center; width: 38px; height: 38px; color: white; background: var(--forest); border: 0; border-radius: 12px; font-weight: 850; }
.profile-pill div { display: grid; }
.profile-pill strong { font-size: 13px; }
.profile-pill small { color: #819087; font-size: 10px; }
.freshness { margin: 0 0 28px; padding: 11px 14px; color: #526258; background: #edf1eb; border-radius: 10px; font-size: 12px; }
.freshness::before { content: "●"; margin-right: 8px; color: #7f9869; font-size: 8px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin: 29px 0 16px; }
.section-heading h2 { margin: 0; font-size: 22px; letter-spacing: -.035em; }
.section-heading .eyebrow { margin-bottom: 5px; }
.time-pill { padding: 8px 12px; color: #607068; background: white; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 730; }
.task-list { display: grid; gap: 12px; }
.task-card { position: relative; display: grid; grid-template-columns: 38px 1fr; gap: 16px; padding: 19px 20px; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 7px 24px rgba(39,68,54,.045); transition: transform .18s ease, opacity .18s ease; }
.task-card:hover { transform: translateY(-1px); }
.task-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--blue); }
.task-card--violet::before { background: var(--violet); }
.task-card--amber::before { background: var(--amber); }
.task-card.is-done { opacity: .58; }
.task-card.is-done h3 { text-decoration: line-through; }
.task-check { display: grid; place-items: center; width: 30px; height: 30px; margin-top: 2px; color: white; background: white; border: 2px solid #d6dfd7; border-radius: 9px; font-weight: 900; }
.is-done .task-check { background: var(--forest); border-color: var(--forest); }
.task-card__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.subject { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.duration { color: #78877f; font-size: 12px; }
.task-card h3 { margin: 8px 0 4px; font-size: 17px; letter-spacing: -.02em; }
.due { margin: 0; color: #88948e; font-size: 12px; }
.task-actions { display: flex; gap: 8px; margin-top: 16px; }
.all-done { display: flex; align-items: center; gap: 16px; padding: 22px; background: #e9f4df; border-radius: 17px; }
.all-done > span { display: grid; place-items: center; width: 42px; height: 42px; color: white; background: #4f7c58; border-radius: 50%; }
.all-done p { margin: 4px 0 0; color: #5e7464; }
.dashboard-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 25px; }
.upcoming-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 17px; padding: 19px; background: #203d32; border-radius: 17px; color: white; box-shadow: var(--shadow); }
.calendar-tile { display: grid; place-items: center; width: 62px; height: 65px; color: var(--forest); background: var(--lime); border-radius: 13px; }
.calendar-tile small { font-size: 10px; font-weight: 800; text-transform: uppercase; }
.calendar-tile strong { font-size: 24px; line-height: 1; }
.badge { display: inline-block; padding: 4px 7px; color: #d8efcd; background: rgba(255,255,255,.1); border-radius: 6px; font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.upcoming-card h3 { margin: 7px 0 2px; font-size: 17px; }
.upcoming-card .muted { margin: 0; color: #b6c5bf; font-size: 11px; }
.upcoming-card .button--dark { color: var(--forest); background: white; }
.practice-list { display: grid; gap: 8px; }
.practice-chip { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 11px; min-height: 58px; padding: 8px 14px 8px 10px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 14px; text-align: left; }
.practice-chip > span:first-child { display: grid; place-items: center; width: 36px; height: 36px; color: #315c9b; background: #e8f0ff; border-radius: 10px; font-weight: 850; }
.practice-chip--2 > span:first-child { color: #6e4a9c; background: #f0eafb; }
.practice-chip--3 > span:first-child { color: #976323; background: #fff1dd; }
.practice-chip > span:last-child { color: #9aa59f; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; transform: translateX(-50%); max-width: min(440px, calc(100vw - 32px)); padding: 13px 18px; color: white; background: #17372b; border-radius: 12px; box-shadow: 0 12px 35px rgba(0,0,0,.2); font-size: 13px; }

@media (max-width: 900px) {
  .login-layout { grid-template-columns: 1fr; background: var(--paper); }
  .brand-panel { display: none; }
  .login-card-wrap { min-height: 100vh; padding: 28px 22px; }
  .login-card { padding: 30px 25px; background: white; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
  .mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 55px; font-weight: 820; }
  .sidebar { display: none; }
  .mobile-header { position: sticky; z-index: 20; top: 0; display: flex; justify-content: space-between; align-items: center; height: 67px; padding: 0 20px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
  .dashboard { width: 100%; margin-left: 0; padding: 28px 20px 105px; }
  .profile-pill { display: none; }
  .bottom-nav { position: fixed; z-index: 30; inset: auto 0 0; display: grid; grid-template-columns: repeat(5, 1fr); height: 72px; padding: 7px 8px max(7px, env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); backdrop-filter: blur(12px); }
  .bottom-nav button { display: grid; place-items: center; gap: 2px; color: #7d8a83; background: transparent; border: 0; font-size: 10px; font-weight: 720; }
  .bottom-nav button span { font-size: 17px; }
  .bottom-nav button.is-active { color: var(--forest); }
}

@media (max-width: 680px) {
  .dashboard__header h1 { font-size: 35px; }
  .dashboard-grid { grid-template-columns: 1fr; gap: 4px; }
  .task-card { grid-template-columns: 32px 1fr; gap: 10px; padding: 17px 15px; }
  .task-actions { flex-wrap: wrap; }
  .upcoming-card { grid-template-columns: auto 1fr; }
  .upcoming-card > .button { grid-column: 1 / -1; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --ink: #edf5ef; --ink-soft: #9fb0a7; --paper: #101914; --card: #16231c; --line: #293a31; }
  body, .login-layout { background: var(--paper); }
  .login-card-wrap, .sidebar, .mobile-header, .bottom-nav, .task-card, .profile-pill, .practice-chip, .time-pill { background-color: var(--card); }
  .login-card input { color: var(--ink); background: #111b16; border-color: var(--line); }
  .login-card input:focus { background: #111b16; }
  .nav-item:hover, .button--ghost, .freshness { background: #213027; }
  .nav-item.is-active { color: #e5f4b0; background: #263821; }
  .task-check { background: var(--card); border-color: #48564e; }
  .mobile-brand .brand__mark, .brand:not(.brand--light) .brand__mark { color: var(--forest); }
  .login-card { background: var(--card); }
}
