/* =========================================================
   pages.css
   Styles that belong to one page only.
   ========================================================= */

/* ---------- Login page (index.html) ---------- */
body.auth-mode {
    display: flex;
    justify-content: center;
    padding-top: 90px;
    min-height: 100vh;
}

.auth-container {
    width: 100%;
    max-width: 340px;
    padding: 0 15px;
}

.auth-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 30px;
    padding-bottom: 6px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--ink);
}

.auth-btn {
    width: 100%;
    margin-top: 5px;
    padding: 7px;
}

.auth-footer {
    margin-top: 18px;
    font-size: 12px;
    color: var(--muted);
}

.auth-footer p {
    margin: 0;
}

/* ---------- Admin dashboard (dashboard.html) ---------- */
/* two columns of notes */
.dashboard-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px 50px;
}

.dashboard-panel {
    min-width: 0;
}

@media (max-width: 900px) {
    .dashboard-content {
        grid-template-columns: 1fr;
    }
}

/* ---------- Create exam (create-exam.html) ---------- */
/* each question is separated by a dashed line, not a box */
.question-block {
    padding: 12px 0 16px;
    border-bottom: 1px dashed var(--line-dashed);
}

.mc-option {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

/* ---------- Grading popup (reports.html) ---------- */
.grade-input {
    width: 60px;
    padding: 3px;
    border: 1px solid #b9b39e;
    background-color: var(--white);
}

.grade-input[readonly] {
    background-color: transparent;
    border-color: transparent;
}

/* ---------- Exam page (exam.html) ---------- */
.exam-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-height);
    padding: 0 25px;
    background-color: var(--paper);
    border-bottom: 2px solid var(--ink);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.exam-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 19px;
}

.timer {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: bold;
}

/* last 5 minutes: the timer turns red */
.timer.timer-low {
    color: var(--red);
}

.exam-container {
    max-width: 760px;
    margin: 25px auto;
    padding: 0 15px;
}

.question-card {
    padding: 16px 0 18px;
    border-bottom: 1px dashed var(--line-dashed);
}

.question-number {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    color: var(--blue);
    margin-bottom: 4px;
}

.question-text {
    margin-bottom: 10px;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.exam-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}
