/* ─── CBA Test App – Stylesheet ──────────────────────────────────────────── */

:root {
  --entra-blue:   #0078D4;
  --entra-dark:   #243A5E;
  --entra-light:  #EFF6FC;
  --text-primary: #1F1F1F;
  --text-muted:   #6B6B6B;
  --surface:      #FFFFFF;
  --border:       #D1D1D1;
  --success:      #107C10;
  --error:        #C50F1F;
  --radius:       8px;
  --shadow:       0 4px 24px rgba(0, 0, 0, 0.10);
}

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

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #EFF6FC 0%, #F5F5F5 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  padding: 1.5rem;
}

/* ── Card ──────────────────────────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 3rem 2.5rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
}

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

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--entra-blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--entra-dark);
}

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

h1 {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--entra-dark);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.subtitle {
  font-size: 0.93rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* ── Divider ────────────────────────────────────────────────────────────────── */

.divider {
  height: 1px;
  background: var(--border);
  margin: 1.75rem 0;
}

/* ── Button ─────────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--entra-blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 120, 212, 0.30);
}

.btn-primary:hover {
  background: #006BBF;
  box-shadow: 0 4px 14px rgba(0, 120, 212, 0.38);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 120, 212, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--entra-blue);
  border: 1.5px solid var(--entra-blue);
}

.btn-outline:hover {
  background: var(--entra-light);
}

/* ── Badge ─────────────────────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.badge-info {
  background: var(--entra-light);
  color: var(--entra-blue);
  border: 1px solid #B3D7F5;
}

.badge-success {
  background: #DFF6DD;
  color: var(--success);
  border: 1px solid #A8D5A2;
}

/* ── Notice box ─────────────────────────────────────────────────────────────── */

.notice {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: var(--entra-light);
  border: 1px solid #B3D7F5;
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  font-size: 0.83rem;
  color: var(--entra-dark);
  text-align: left;
  margin-bottom: 1.75rem;
}

.notice-icon { flex-shrink: 0; font-size: 1rem; }

.error-notice {
  background: #FDE7E9;
  border-color: #F4ABAB;
  color: var(--error);
}

/* ── User info table ─────────────────────────────────────────────────────────── */

.user-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.88rem;
  text-align: left;
}

.user-table tr + tr { border-top: 1px solid var(--border); }

.user-table td {
  padding: 0.55rem 0.4rem;
  vertical-align: top;
}

.user-table td:first-child {
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  padding-right: 1rem;
  width: 38%;
}

.user-table td:last-child {
  color: var(--text-primary);
  word-break: break-all;
}

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

.card-footer {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

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

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