/* ═══════════════════════════════════════════════════════════════════════════
   Vibe Va'a Club — Portal do Aluno
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --portal-navy:   #1a2c42;
  --portal-accent: #3b9fd6;
  --portal-bg:     #f3f5f8;
  --portal-border: #e5e9f0;
  --portal-text:   #1e2d3d;
  --portal-muted:  #6b7280;
  --portal-radius: .75rem;
  --portal-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.07);
}

/* ─── Base ─────────────────────────────────────────────────────────────────── */
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .875rem;
  background-color: var(--portal-bg);
  color: var(--portal-text);
  -webkit-font-smoothing: antialiased;
}

/* ─── Navbar ────────────────────────────────────────────────────────────────── */
.portal-navbar {
  background-color: var(--portal-navy);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.portal-brand {
  font-weight: 700;
  font-size: .9rem;
  color: #fff;
  letter-spacing: .02em;
}

.portal-logout-btn {
  font-size: .75rem;
  color: rgba(255,255,255,.7);
  border-color: rgba(255,255,255,.2);
  padding: .25rem .65rem;
}

.portal-logout-btn:hover {
  color: #fff;
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.08);
}

.portal-content {
  max-width: 600px;
}

/* ─── Login ─────────────────────────────────────────────────────────────────── */
.portal-login-wrap {
  min-height: calc(100vh - 64px);
}

.portal-login-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 1rem;
  padding: 2.25rem;
  box-shadow: 0 4px 24px rgba(26,44,66,.1), 0 1px 4px rgba(26,44,66,.06);
  border: 1px solid var(--portal-border);
  margin: 1.5rem auto;
}

.portal-login-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--portal-navy) 0%, #2d5a8e 100%);
  border-radius: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: #fff;
}

/* ─── Profile header ─────────────────────────────────────────────────────────── */
.portal-profile-header {
  background: #fff;
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-radius);
  padding: 1.25rem;
  box-shadow: var(--portal-shadow);
}

/* ─── Avatar ─────────────────────────────────────────────────────────────────── */
.portal-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.portal-avatar,
.portal-avatar-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.portal-avatar-placeholder {
  background: linear-gradient(135deg, var(--portal-navy), #2d5a8e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
}

.portal-avatar-edit {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--portal-accent);
  border: 2px solid #fff;
  color: #fff;
  font-size: .6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

/* ─── Info cards ─────────────────────────────────────────────────────────────── */
.portal-card {
  background: #fff;
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--portal-shadow);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.portal-card-icon {
  width: 44px;
  height: 44px;
  border-radius: .6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.portal-card-label {
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .055rem;
  color: var(--portal-muted);
  margin-bottom: .15rem;
}

.portal-card-value {
  font-size: .95rem;
  font-weight: 600;
  color: var(--portal-text);
  line-height: 1.3;
}

.portal-card-sub {
  font-size: .75rem;
  font-weight: 400;
  color: var(--portal-muted);
  margin-top: .1rem;
}

/* ─── Sections ───────────────────────────────────────────────────────────────── */
.portal-section {
  background: #fff;
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-radius);
  padding: 1.1rem;
  box-shadow: var(--portal-shadow);
}

.portal-section-title {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07rem;
  color: var(--portal-muted);
  margin-bottom: .85rem;
}

/* ─── Turmas list ────────────────────────────────────────────────────────────── */
.portal-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .65rem .75rem;
  background: var(--portal-bg);
  border-radius: .5rem;
  border: 1px solid var(--portal-border);
}

/* ─── DL dados pessoais ──────────────────────────────────────────────────────── */
.portal-dl {
  margin: 0;
}

.portal-dl-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem 0;
  border-bottom: 1px solid var(--portal-border);
  font-size: .82rem;
}

.portal-dl-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.portal-dl-row dt {
  font-weight: 500;
  color: var(--portal-muted);
  flex-shrink: 0;
}

.portal-dl-row dd {
  margin: 0;
  text-align: right;
  color: var(--portal-text);
}

/* ─── Forms override ─────────────────────────────────────────────────────────── */
.form-control {
  font-size: .85rem;
  border-color: #d1d5db;
  border-radius: .4rem;
}

.form-control:focus {
  border-color: var(--portal-accent);
  box-shadow: 0 0 0 3px rgba(59,159,214,.12);
}

.form-label {
  font-size: .78rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: .25rem;
}

.btn-dark {
  background-color: var(--portal-navy);
  border-color: var(--portal-navy);
  font-weight: 500;
  font-size: .85rem;
  border-radius: .4rem;
}

.btn-dark:hover {
  background-color: #243b55;
  border-color: #243b55;
}
