/* =====================================================================
   Online Parent-Teacher Meeting System
   Design system: "School Register"
   File: assets/css/style.css
   ===================================================================== */

:root {
    --ink:        #143A2B;   /* deep forest - sidebar, headings   */
    --ink-soft:   #1C4C39;   /* hover state on the ink surface    */
    --canvas:     #EEF2EC;   /* pale sage page background         */
    --surface:    #FFFFFF;
    --accent:     #F2A93B;   /* marigold - chips, active markers  */
    --accent-dim: #FDF1DA;
    --action:     #1D7A5F;   /* teal-green - primary buttons      */
    --action-dk:  #17624C;
    --text:       #24302C;
    --muted:      #6B7B74;
    --line:       #D8E0D9;
    --danger:     #B3261E;
    --danger-bg:  #FBE9E7;
    --ok-bg:      #E4F2EC;
    --warn-bg:    #FDF1DA;
    --warn-tx:    #8A5A00;
    --r:          14px;
    --shadow:     0 1px 2px rgba(20,58,43,.06), 0 8px 24px rgba(20,58,43,.07);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; height: 100%; }

body {
    font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    background: var(--canvas);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
}

h1, h2, h3, .display {
    font-family: Georgia, "Liberation Serif", "Times New Roman", serif;
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 0;
}

a { color: var(--action); }

/* ------------------------------------------------------------------ */
/*  SIGNATURE: the ID chip — a record number, set in monospace          */
/* ------------------------------------------------------------------ */
.chip {
    display: inline-block;
    font-family: "Consolas", "Liberation Mono", ui-monospace, monospace;
    font-size: 12.5px;
    letter-spacing: .04em;
    background: var(--accent-dim);
    color: #8A5A00;
    border: 1px solid #EBD3A4;
    border-radius: 999px;
    padding: 3px 12px;
    white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/*  SPLIT SCREEN — sign in / register                                   */
/* ------------------------------------------------------------------ */
.split { display: flex; min-height: 100vh; }

.split-brand {
    flex: 0 0 40%;
    background: var(--ink);
    color: #EAF1EC;
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brandmark { display: flex; align-items: center; gap: 12px; }

.crest {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--accent);
    color: var(--ink);
    font-family: Georgia, serif;
    font-weight: 700;
    font-size: 19px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.brandmark span { font-family: Georgia, serif; font-size: 17px; font-weight: 700; }

.split-brand h1 { font-size: 34px; line-height: 1.22; margin: 0 0 14px; color: #fff; }
.split-brand p  { color: #B4C9BC; margin: 0; max-width: 34ch; }

.brand-note {
    border-left: 3px solid var(--accent);
    padding-left: 16px;
    color: #B4C9BC;
    font-size: 14px;
}

.split-form {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
}

.form-panel { width: 100%; max-width: 380px; }

.eyebrow {
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 6px;
}

.form-panel h2 { font-size: 27px; margin: 0 0 26px; color: var(--ink); }

/* ------------------------------------------------------------------ */
/*  APP SHELL — signed-in areas                                         */
/* ------------------------------------------------------------------ */
.shell { display: flex; min-height: 100vh; }

.sidebar {
    flex: 0 0 244px;
    background: var(--ink);
    color: #C6D8CC;
    padding: 26px 18px;
    display: flex;
    flex-direction: column;
}

.sidebar .brandmark { margin-bottom: 34px; padding: 0 8px; }
.sidebar .brandmark span { color: #fff; font-size: 15px; line-height: 1.25; }

.side-label {
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #7E9A88;
    padding: 0 10px;
    margin-bottom: 10px;
}

.sidebar nav a {
    display: block;
    padding: 10px 12px;
    margin-bottom: 3px;
    border-radius: 9px;
    color: #C6D8CC;
    text-decoration: none;
    font-size: 14.5px;
    border-left: 3px solid transparent;
}

.sidebar nav a:hover { background: var(--ink-soft); color: #fff; }

.sidebar nav a.is-active {
    background: var(--ink-soft);
    color: #fff;
    border-left-color: var(--accent);
    font-weight: 600;
}

.sidebar .side-foot {
    margin-top: auto;
    padding: 14px 12px 0;
    border-top: 1px solid rgba(255,255,255,.12);
    font-size: 12.5px;
    color: #7E9A88;
}

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 18px 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.topbar h1 { font-size: 23px; color: var(--ink); }
.topbar .sub { color: var(--muted); font-size: 13.5px; margin-top: 2px; }

.user-chip {
    display: flex; align-items: center; gap: 10px;
    background: var(--canvas);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 14px 5px 5px;
    font-size: 13.5px;
    white-space: nowrap;
}

.avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--action); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
}

.content { padding: 30px 34px 44px; flex: 1; }

/* ------------------------------------------------------------------ */
/*  RECORD CARD — colored spine marks the kind of record                */
/* ------------------------------------------------------------------ */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--action);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    padding: 26px 28px;
    max-width: 560px;
}

.card--wide  { max-width: 100%; }
.card--table { max-width: 760px; padding: 24px 26px; }
.card--mark  { border-left-color: var(--accent); }

.card > h2 { font-size: 20px; color: var(--ink); margin: 0 0 4px; }
.card .hint { color: var(--muted); font-size: 13.5px; margin: 0 0 20px; }

/* ------------------------------------------------------------------ */
/*  FORMS                                                               */
/* ------------------------------------------------------------------ */
.field { margin-bottom: 17px; }

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}

input[type=text], input[type=password], input[type=email], input[type=file] {
    width: 100%;
    padding: 11px 14px;
    font: inherit;
    font-size: 14.5px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: none;
}

input::placeholder { color: #9AA9A2; }

input:focus {
    border-color: var(--action);
    box-shadow: 0 0 0 3px rgba(29,122,95,.14);
}

input[readonly] { background: var(--canvas); color: var(--muted); }

.btn {
    display: block;
    width: 100%;
    padding: 12px 18px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: var(--action);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    margin-top: 8px;
}

.btn:hover { background: var(--action-dk); }
.btn--danger { background: var(--danger); }
.btn--danger:hover { background: #8E1D17; }
.btn--quiet {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
}
.btn--quiet:hover { background: var(--canvas); }

/* ------------------------------------------------------------------ */
/*  MESSAGES — say what happened and what to do next                    */
/* ------------------------------------------------------------------ */
.note {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 18px;
    border: 1px solid transparent;
}

.note b { font-weight: 700; }
.note--ok    { background: var(--ok-bg);     color: #14503C; border-color: #BFE0D2; }
.note--error { background: var(--danger-bg); color: var(--danger); border-color: #F2C9C5; }
.note--warn  { background: var(--warn-bg);   color: var(--warn-tx); border-color: #EBD3A4; }

/* ------------------------------------------------------------------ */
/*  REGISTER TABLE                                                      */
/* ------------------------------------------------------------------ */
table.register { width: 100%; border-collapse: collapse; font-size: 14px; }

table.register th {
    text-align: left;
    font-size: 11.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
    padding: 0 14px 10px;
    border-bottom: 1px solid var(--line);
}

table.register td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

table.register tr:last-child td { border-bottom: none; }
table.register tbody tr:hover td { background: #F7FAF7; }

.portrait {
    width: 44px; height: 44px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--line);
    display: block;
}

.portrait--empty {
    width: 44px; height: 44px;
    border-radius: 10px;
    border: 1px dashed var(--line);
    background: var(--canvas);
    color: var(--muted);
    font-size: 10px;
    display: flex; align-items: center; justify-content: center;
}

.empty-state {
    text-align: center;
    padding: 34px 20px;
    color: var(--muted);
}

.empty-state p { margin: 0 0 4px; }

/* ------------------------------------------------------------------ */
/*  PUBLIC LANDING                                                      */
/* ------------------------------------------------------------------ */
.topnav {
    background: var(--ink);
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topnav .brandmark span { color: #fff; }
.topnav nav a {
    color: #C6D8CC;
    text-decoration: none;
    margin-left: 26px;
    font-size: 14.5px;
}
.topnav nav a:hover { color: #fff; }

.hero { padding: 60px 40px 44px; max-width: 1080px; margin: 0 auto; }
.hero h1 { font-size: 42px; line-height: 1.15; color: var(--ink); max-width: 17ch; margin-bottom: 16px; }
.hero p  { font-size: 16.5px; color: var(--muted); max-width: 58ch; margin: 0 0 30px; }

.doors { display: flex; gap: 20px; flex-wrap: wrap; }

.door {
    flex: 1 1 260px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 4px solid var(--accent);
    border-radius: var(--r);
    padding: 22px 24px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
}

.door:hover { border-top-color: var(--action); }
.door h3 { font-size: 18px; color: var(--ink); margin-bottom: 6px; }
.door p  { font-size: 13.5px; color: var(--muted); margin: 0 0 12px; }
.door .go { font-size: 13.5px; font-weight: 600; color: var(--action); }

.foot {
    padding: 22px 40px;
    color: var(--muted);
    font-size: 13px;
    border-top: 1px solid var(--line);
    margin-top: 40px;
}

.linkrow { margin-top: 18px; font-size: 13.5px; color: var(--muted); text-align: center; }

/* ------------------------------------------------------------------ */
/*  RESPONSIVE                                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 820px) {
    .split { flex-direction: column; }
    .split-brand { flex: none; padding: 30px 26px; }
    .split-brand h1 { font-size: 26px; }
    .shell { flex-direction: column; }
    .sidebar { flex: none; flex-direction: row; align-items: center; gap: 6px;
               overflow-x: auto; padding: 12px; }
    .sidebar .brandmark, .side-label, .side-foot { display: none; }
    .sidebar nav { display: flex; gap: 6px; }
    .sidebar nav a { white-space: nowrap; margin: 0; border-left: none; border-bottom: 3px solid transparent; }
    .sidebar nav a.is-active { border-left: none; border-bottom-color: var(--accent); }
    .topbar, .content { padding-left: 20px; padding-right: 20px; }
    .hero { padding: 40px 22px 30px; }
    .hero h1 { font-size: 30px; }
}
