/* ==========================================================================
   ALEXPTECH — PORTAL DO ALUNO (ESTILOS MODERNOS & MINIMALISTAS)
   Foco: Gateway de Acesso Exclusivo com Alta Performance e Segurança
   ========================================================================== */

:root {
  /* Cores Base */
  --bg-main: #070a10;
  --bg-surface: #0e1422;
  --bg-surface-elevated: #151f34;
  --bg-card: rgba(14, 20, 34, 0.88);
  --bg-card-hover: rgba(20, 30, 50, 0.95);

  /* Acentos Tecnológicos */
  --accent-cyan: #00d2ff;
  --accent-cyan-glow: rgba(0, 210, 255, 0.38);
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.3);
  --accent-amber: #f59e0b;

  /* Bordas */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-cyan: rgba(0, 210, 255, 0.28);
  --border-glow: rgba(0, 210, 255, 0.5);

  /* Texto */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-white: #ffffff;

  /* Tipografia */
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Dimensões */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transições */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset Básico */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-main);
}

.portal-body {
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Efeitos de Fundo Tecnológico */
.cyber-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at 50% 45%, black 40%, transparent 80%);
  pointer-events: none;
  z-index: -2;
}

.ambient-glow {
  position: fixed;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.14) 0%, rgba(16, 185, 129, 0.05) 50%, transparent 75%);
  filter: blur(90px);
  pointer-events: none;
  z-index: -1;
}

/* Container */
.container {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   HEADER MINIMALISTA
   ========================================================================== */
.portal-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(7, 10, 16, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.portal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.navbar-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 210, 255, 0.25));
  transition: transform var(--transition-fast);
}

.navbar-brand:hover .navbar-logo {
  transform: scale(1.03);
}

/* ==========================================================================
   PORTAL MAIN & CARD DE ACESSO
   ========================================================================== */
.portal-main {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.portal-card-wrapper {
  width: 100%;
  max-width: 540px;
}

.portal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.25rem;
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.7),
    0 0 35px rgba(0, 210, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.portal-card:hover {
  box-shadow: 
    0 30px 70px rgba(0, 0, 0, 0.8),
    0 0 45px rgba(0, 210, 255, 0.2);
}

.portal-badge-container {
  text-align: center;
  margin-bottom: 1.5rem;
}

.portal-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.75rem;
  background: rgba(0, 210, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-full);
}

.portal-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.portal-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.portal-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-xl {
  padding: 1rem 1.85rem;
  font-size: 1.05rem;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #00d2ff 0%, #0096c7 100%);
  color: #030b15;
  box-shadow: 0 4px 20px var(--accent-cyan-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 210, 255, 0.55);
  color: #000;
}

.portal-action-group {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.portal-recovery-wrap {
  text-align: center;
}

.portal-recovery-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.portal-recovery-link:hover {
  color: var(--accent-cyan);
}

.portal-recovery-link svg {
  opacity: 0.7;
}

/* ==========================================================================
   RODAPÉ
   ========================================================================== */
.portal-footer {
  padding: 1.75rem 0;
  font-size: 0.8rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border-subtle);
  background: rgba(7, 10, 16, 0.4);
}

.footer-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  margin-top: 0.25rem;
  color: #475569;
}

/* Responsividade */
@media (max-width: 560px) {
  .portal-card {
    padding: 2rem 1.5rem;
  }

  .portal-title {
    font-size: 1.5rem;
  }
}
