/* =============================================================
   CBT System — Login Page (Modern Clean Theme)
   ============================================================= */

:root {
    --primary:      #2563EB;
    --primary-dark: #1D4ED8;
    --accent:       #06B6D4;
    --bg:           #F1F5F9;
    --text:         #1E293B;
    --text-muted:   #64748B;
    --border:       #E2E8F0;
    --card-bg:      #ffffff;
}

/* ── Reset / Base ────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)), url('../img/bg4.jpg') center center / cover no-repeat fixed;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media (min-width: 992px) {
    body {
        padding: 2rem;
    }
}

.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    color: var(--text);
}

h4, h5 { text-transform: none; }

h6 { color: var(--text-muted); }

p.lead {
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* ── Login card (resume-section acts as the card) ────────── */
section.resume-section {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.4);
    padding: 3rem 1.25rem !important;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    section.resume-section {
        min-height: unset;
    }
}

@media (min-width: 992px) {
    section.resume-section {
        padding: 3.5rem 1.75rem !important;
    }
}

/* ── Logo text ───────────────────────────────────────────── */
.logo-text {
    color: var(--text) !important;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    padding: 2px 0;
    display: block;
}

/* ── Logo image ──────────────────────────────────────────── */
.img-profile.rounded-circle {
    border: 3px solid var(--border);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* ── Form controls ───────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }

.form-control {
    height: 52px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    color: var(--text);
    background: #F8FAFC;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
    width: 100%;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.form-control::placeholder {
    color: #94A3B8;
}

/* ── Submit button ───────────────────────────────────────── */
.btn-secondary,
.btn-primary {
    height: 52px;
    background: var(--primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
    box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}

.btn-secondary:hover,
.btn-primary:hover {
    background: var(--primary-dark) !important;
    box-shadow: 0 6px 20px rgba(37,99,235,0.4);
    transform: translateY(-1px);
}

/* ── Links ───────────────────────────────────────────────── */
a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s;
}

a:hover, a:focus, a:active {
    color: var(--primary-dark);
    text-decoration: none;
}

/* ── Color overrides ─────────────────────────────────────── */
.bg-primary { background-color: var(--primary) !important; }
.text-primary { color: var(--primary) !important; }

.text-secondary { color: var(--text-muted) !important; }

/* ── Resume content ──────────────────────────────────────── */
.resume-content {
    overflow-x: auto;
    overflow-wrap: break-word;
}

/* ── Messages / alerts ───────────────────────────────────── */
.message { margin-bottom: 0.5rem; }

.alert {
    border-radius: 10px;
    font-size: 0.875rem;
    border: none;
}

.alert-danger { background: #FEF2F2; color: #991B1B; }

/* ── Word wrap ───────────────────────────────────────────── */
.word-wrap {
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* ── Answered pills ──────────────────────────────────────── */
.answered {
    background: #06B6D4;
    color: #fff;
    padding: 2px 6px;
    border-radius: 6px;
}

/* ── Divider ─────────────────────────────────────────────── */
hr.m-0 {
    border-color: var(--border);
    opacity: 0.5;
}

/* ── Login meta (IP / date below the card) ───────────────── */
.login-meta {
    color: #ffffff !important;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    padding: 1rem 0 1.5rem;
}

.login-meta span,
.login-meta i {
    color: #ffffff !important;
}

.login-meta .fa {
    font-size: 0.75rem;
    margin-right: 3px;
}
