/* ==========================================================================
   SEEYOUSOON SUPER-APP — A-START-UI STYLESHEET
   Covers A1 (Splash), A2 (Onboarding), A4 (Logga in), A5 (BankID),
   A6 (SMS-kod), A7 (Behörigheter), A8 (Din profil).
   Strictly complies with Section 8: Zero inline styles, < 500 lines.
   ========================================================================== */

.ast-screen {
  position: relative;
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--text, #f8fafc);
  background-color: var(--bg-canvas, #090B10);
  box-sizing: border-box;
  padding: 24px 20px calc(var(--safe-bottom, 20px) + 20px);
  overflow-x: hidden;
}

/* Splash Logo & Stage (A1) */
.ast-splash-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 2;
}

.ast-splash-halo {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(99, 102, 241, 0.15) 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.35), inset 0 1px 1px 0 rgba(255, 255, 255, 0.2);
}

.ast-brand-logo {
  font-family: var(--display, 'Plus Jakarta Sans', sans-serif);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0;
}

.ast-brand-tagline {
  font-size: 13px;
  color: #cbc3d7;
  max-width: 280px;
  margin: 6px auto 0;
  line-height: 1.45;
}

/* Onboarding Feature Slides (A2) */
.ast-feature-card {
  background: rgba(20, 26, 41, 0.65);
  border: 1px solid rgba(168, 85, 247, 0.18);
  border-radius: 24px;
  padding: 22px 18px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.ast-feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple, #d0bcff);
}

.ast-feature-title {
  font-family: var(--display, 'Plus Jakarta Sans', sans-serif);
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.ast-feature-desc {
  font-size: 12.5px;
  color: #cbc3d7;
  line-height: 1.45;
  margin: 0;
}

/* Personnummer Input Field (A4) */
.ast-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  width: 100%;
}

.ast-input-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ast-pnr-input {
  width: 100%;
  height: 52px;
  border-radius: 16px;
  background: rgba(14, 18, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-family: var(--mono, monospace);
  font-size: 17px;
  font-weight: 700;
  padding: 0 16px;
  letter-spacing: 0.08em;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ast-pnr-input:focus {
  border-color: var(--purple, #a855f7);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.3);
}

/* Primary BankID Launch Button */
.ast-bankid-btn {
  width: 100%;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-family: var(--display, 'Plus Jakarta Sans', sans-serif);
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 24px -4px rgba(16, 185, 129, 0.45);
  transition: transform 0.15s ease;
  text-decoration: none;
}

.ast-bankid-btn:active { transform: scale(0.97); }

/* QR Code Container (A5) */
.ast-qr-box {
  width: 180px;
  height: 180px;
  border-radius: 20px;
  background: #ffffff;
  padding: 12px;
  margin: 16px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

/* 6-Digit SMS PIN Code Inputs (A6) */
.ast-otp-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.ast-otp-cell {
  height: 52px;
  border-radius: 14px;
  background: rgba(14, 18, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-family: var(--mono, monospace);
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  outline: none;
  box-sizing: border-box;
}

.ast-otp-cell:focus {
  border-color: var(--purple, #a855f7);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.35);
}

/* Permissions Rows (A7) */
.ast-perm-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(20, 26, 41, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ast-perm-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ast-perm-title {
  font-family: var(--display, 'Plus Jakarta Sans', sans-serif);
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.ast-perm-sub {
  font-size: 11px;
  color: #94a3b8;
}
