/* Área do Aluno — paleta alinhada ao site GHLIAT */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary: #10b981;
    --accent: #f59e0b;
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --text: #1f2937;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --error: #ef4444;
    --success: #10b981;
    --info: #3b82f6;
    --radius: 14px;
    --shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
    --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border: none;
    border-radius: 10px;
    padding: .7rem 1.15rem;
    font-weight: 600;
    cursor: pointer;
    font-size: .95rem;
    transition: .2s ease;
}
.btn-sm { padding: .45rem .8rem; font-size: .85rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}
.btn-primary:hover { filter: brightness(1.05); color: #fff; }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text);
}
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn.disabled, .btn:disabled { opacity: .55; pointer-events: none; }

.alert {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    padding: .85rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: .92rem;
}
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }

/* Auth */
.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    position: relative;
}
.auth-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(37, 99, 235, .18), transparent 50%),
        radial-gradient(ellipse at 80% 0%, rgba(16, 185, 129, .12), transparent 45%),
        linear-gradient(160deg, #0f172a 0%, #1e3a8a 45%, #0f172a 100%);
    z-index: 0;
}
.auth-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
}
.auth-wrap--wide { max-width: 720px; }
.auth-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow);
}
.auth-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}
.auth-brand img {
    height: 48px;
    margin: 0 auto .85rem;
    object-fit: contain;
}
.auth-brand h1 {
    margin: 0;
    font-size: 1.45rem;
    color: var(--primary-dark);
}
.auth-brand p {
    margin: .35rem 0 0;
    color: var(--text-muted);
    font-size: .92rem;
}
.auth-form .form-group { margin-bottom: 1rem; }
.auth-form label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: .35rem;
}
.auth-form label small { font-weight: 400; color: var(--text-muted); }
.auth-form input,
.auth-form select,
.auth-form textarea,
.upload-form input,
.upload-form select,
.upload-form textarea,
.avaliacao-form input,
.avaliacao-form select,
.avaliacao-form textarea {
    width: 100%;
    padding: .7rem .85rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font: inherit;
    background: #fff;
    color: var(--text);
}
.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus,
.upload-form input:focus,
.upload-form select:focus,
.avaliacao-form select:focus,
.avaliacao-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
fieldset {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1rem .25rem;
    margin: 0 0 1.1rem;
}
legend {
    padding: 0 .4rem;
    font-size: .8rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.legal-box {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.25rem;
}
.check-line {
    display: flex;
    gap: .65rem;
    align-items: flex-start;
    font-size: .88rem;
    color: var(--text);
    margin-bottom: .85rem;
    cursor: pointer;
}
.check-line:last-child { margin-bottom: 0; }
.check-line input { width: auto; margin-top: .2rem; flex-shrink: 0; }
.auth-footer, .auth-back {
    text-align: center;
    margin: 1rem 0 0;
    font-size: .9rem;
    color: var(--text-muted);
}
.auth-back a { color: var(--text-muted); }
.auth-back a:hover { color: var(--primary); }

/* Dashboard */
.dash-header {
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: #fff;
    padding: .9rem 1.25rem;
}
.dash-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.dash-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: #fff;
    font-weight: 700;
}
.dash-brand img { height: 36px; width: auto; }
.dash-brand:hover { color: #fff; opacity: .92; }
.dash-user {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
    font-size: .92rem;
}
.dash-user .btn-outline {
    border-color: rgba(255,255,255,.35);
    color: #fff;
}
.dash-user .btn-ghost { color: rgba(255,255,255,.85); }

.dash-tabs {
    max-width: 1100px;
    margin: 0 auto;
    padding: .75rem 1.25rem 0;
    display: flex;
    gap: .4rem;
    overflow-x: auto;
}
.dash-tab {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .65rem 1rem;
    border-radius: 10px 10px 0 0;
    color: var(--text-muted);
    font-weight: 600;
    font-size: .9rem;
    white-space: nowrap;
    border: 1px solid transparent;
    border-bottom: none;
}
.dash-tab:hover { color: var(--primary); background: rgba(37,99,235,.06); }
.dash-tab.active {
    background: var(--bg-card);
    color: var(--primary-dark);
    border-color: var(--border);
}

.dash-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.25rem;
}
.panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.35rem 1.4rem;
    margin-bottom: 1.15rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}
.panel h2 {
    margin: 0 0 .35rem;
    font-size: 1.2rem;
    color: var(--primary-dark);
}
.panel-lead, .muted { color: var(--text-muted); font-size: .92rem; }
.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .75rem;
}
.panel-head h2 { margin: 0; }

.data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .85rem;
    margin-top: 1rem;
}
.data-grid > div {
    background: var(--bg);
    border-radius: 10px;
    padding: .75rem .9rem;
}
.data-grid .span-2 { grid-column: span 2; }
.data-grid span {
    display: block;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-muted);
    margin-bottom: .2rem;
}
.data-grid strong { font-size: .95rem; word-break: break-word; }

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: .9rem;
}
.preview-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    color: inherit;
    transition: transform .15s, box-shadow .15s;
}
.preview-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    color: inherit;
}
.preview-thumb {
    aspect-ratio: 4/3;
    background: #eef2ff;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.preview-thumb img { width: 100%; height: 100%; object-fit: cover; }
.preview-thumb i { font-size: 2rem; color: var(--error); }
.preview-meta { padding: .65rem .7rem; }
.preview-meta strong {
    display: block;
    font-size: .82rem;
    margin-top: .25rem;
    line-height: 1.3;
}
.preview-meta small {
    display: block;
    color: var(--text-muted);
    font-size: .72rem;
    margin-top: .25rem;
}
.badge {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    background: rgba(37,99,235,.1);
    color: var(--primary-dark);
    padding: .15rem .45rem;
    border-radius: 999px;
}

.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
}
.empty-state i { font-size: 2.2rem; color: var(--primary-light); margin-bottom: .75rem; }

.course-mini { list-style: none; padding: 0; margin: .75rem 0 0; }
.course-mini li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .7rem 0;
    border-bottom: 1px solid var(--border);
}
.course-mini li:last-child { border-bottom: none; }
.course-mini span { color: var(--text-muted); font-size: .88rem; }

.course-list { display: flex; flex-direction: column; gap: 1rem; }
.course-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.1rem;
    background: #fff;
}
.course-card-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: .85rem;
}
.course-card-head h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.course-card-head p { margin: 0; color: var(--text-muted); font-size: .88rem; }
.status { text-transform: capitalize; font-weight: 600; }
.status-concluido { color: var(--success); }
.status-em_andamento { color: var(--accent); }
.status-cancelado { color: var(--error); }

.photo-strip {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    padding-bottom: .35rem;
    margin-bottom: .85rem;
}
.photo-strip a {
    flex: 0 0 110px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.photo-strip img { width: 100%; height: 100%; object-fit: cover; }

.avaliacao-box {
    background: var(--bg);
    border-radius: 10px;
    padding: 1rem;
}
.avaliacao-box h4 {
    margin: 0 0 .75rem;
    font-size: .95rem;
    color: var(--primary-dark);
}
.form-msg {
    display: block;
    margin-top: .65rem;
    font-size: .88rem;
}
.form-msg.ok { color: var(--success); }
.form-msg.err { color: var(--error); }

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: .85rem;
    margin-top: 1rem;
}
.support-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .25rem;
    padding: 1.1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    color: inherit;
    background: #fff;
    transition: .15s;
}
.support-card i { font-size: 1.6rem; margin-bottom: .35rem; }
.support-card span { color: var(--text-muted); font-size: .85rem; }
.support-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.support-card.ig i { color: #e1306c; }
.support-card.fb i { color: #1877f2; }
.support-card.wa i { color: #25d366; }
.support-card.yt i { color: #ff0000; }

.docs-legal { display: flex; flex-direction: column; gap: .75rem; margin-top: 1rem; }
.legal-link {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    color: inherit;
    background: #fff;
}
.legal-link:hover { border-color: var(--primary-light); color: inherit; }
.legal-link i { font-size: 1.4rem; color: var(--primary); margin-top: .15rem; }
.legal-link strong { display: block; margin-bottom: .2rem; }
.legal-link span { font-size: .88rem; color: var(--text-muted); }
.legal-highlight {
    margin-top: 1.1rem;
    padding: 1rem 1.1rem;
    border-left: 4px solid var(--primary);
    background: #eff6ff;
    border-radius: 0 10px 10px 0;
}
.legal-highlight h3 { margin: 0 0 .5rem; font-size: .95rem; }
.legal-highlight ul { margin: 0; padding-left: 1.1rem; color: var(--text-muted); font-size: .9rem; }

.dash-footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: .85rem;
}

@media (max-width: 640px) {
    .form-row { grid-template-columns: 1fr; }
    .data-grid { grid-template-columns: 1fr; }
    .data-grid .span-2 { grid-column: span 1; }
    .auth-card { padding: 1.4rem 1.1rem; }
}
