/* ── Cortica Captive Portal — Standalone Styles ────────────────── */
/* No external dependencies. Mobile-first. CNA-safe. */

:root {
  --cortica-blue: #10389A;
  --cortica-dark: #122F4E;
  --cortica-ivory: #F9F8F2;
  --cortica-blue-50: #EEF2FB;
  --cortica-blue-100: #D4DDEF;
  --white: #FFFFFF;
  --gray-500: #6B7280;
  --gray-400: #9CA3AF;
  --green-500: #22C55E;
  --green-600: #16A34A;
  --green-50: #F0FDF4;
  --red-500: #EF4444;
  --red-50: #FEF2F2;
  --amber-500: #F59E0B;
  --amber-50: #FFFBEB;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(18, 47, 78, 0.08);
  --shadow-lg: 0 8px 32px rgba(18, 47, 78, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--cortica-dark);
  background: var(--cortica-ivory);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.portal-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: calc(100% - 32px);
  max-width: 400px;
  padding: 40px 32px;
  text-align: center;
  animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Logo ─────────────────────────────────────────────────── */

.portal-logo {
  display: block;
  margin: 0 auto 24px;
  height: 40px;
  width: auto;
}

/* ── Typography ──────────────────────────────────────────── */

.portal-title {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--cortica-dark);
  margin-bottom: 8px;
}

.portal-subtitle {
  font-size: 0.9375rem;
  color: var(--gray-500);
  margin-bottom: 32px;
}

.portal-ssid {
  display: inline-block;
  background: var(--cortica-blue-50);
  color: var(--cortica-blue);
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 0.875rem;
}

/* ── Buttons ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-microsoft {
  background: var(--white);
  color: #3c4043;
  border: 1px solid #dadce0;
  font-weight: 500;
}

.btn-microsoft:hover {
  background: #f8f9fa;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.15);
}

.btn-microsoft svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--cortica-blue);
  color: var(--white);
}

.btn-primary:hover {
  background: #0D2D7B;
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--cortica-blue);
  border: 1px solid var(--cortica-blue-100);
}

.btn-outline:hover {
  background: var(--cortica-blue-50);
}

/* ── Status Icons ────────────────────────────────────────── */

.status-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.status-icon-success {
  background: var(--green-50);
}

.status-icon-denied {
  background: var(--red-50);
}

.status-icon-error {
  background: var(--amber-50);
}

/* ── Checkmark Animation ─────────────────────────────────── */

.checkmark-circle {
  width: 48px;
  height: 48px;
  stroke: var(--green-600);
  stroke-width: 2;
  fill: none;
  animation: checkDraw 0.6s ease-out 0.2s both;
}

.checkmark-check {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: checkDraw 0.4s ease-out 0.6s both;
}

@keyframes checkDraw {
  to { stroke-dashoffset: 0; }
}

/* ── Footer ──────────────────────────────────────────────── */

.portal-footer {
  margin-top: 32px;
  font-size: 0.8125rem;
  color: var(--gray-400);
}

.portal-footer a {
  color: var(--cortica-blue);
  text-decoration: none;
}

.portal-footer a:hover {
  text-decoration: underline;
}

/* ── CNA-specific ────────────────────────────────────────── */

.cna-note {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-top: 16px;
  line-height: 1.4;
}
