/* ══════════════════════════════════════════════════════════════════════════
   SEDS KOSMORENA 2026 — AUTHENTICATION DESIGN SYSTEM
   Theme: Aerospace Dark Glassmorphism + Cosmic Particle Background Integration
   ══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  --font-main: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Mono', monospace;

  --color-bg: #030305;
  --color-card-bg: rgba(8, 8, 12, 0.78);
  --color-card-border: rgba(255, 255, 255, 0.14);
  --color-card-hover: rgba(255, 255, 255, 0.32);

  --color-white: #ffffff;
  --color-white-90: rgba(255, 255, 255, 0.90);
  --color-white-70: rgba(255, 255, 255, 0.70);
  --color-white-50: rgba(255, 255, 255, 0.50);
  --color-white-20: rgba(255, 255, 255, 0.20);
  --color-white-10: rgba(255, 255, 255, 0.10);
  --color-white-05: rgba(255, 255, 255, 0.05);

  --color-primary: #ffffff;
  --color-primary-text: #050508;
  --color-cyan: #00f0ff;
  --color-green: #38ef7d;
  --color-red: #ff4757;
  --color-amber: #ffa502;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(255, 255, 255, 0.04);
}

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

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--color-bg);
  font-family: var(--font-main);
  color: var(--color-white);
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Background Particle Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* Cursor Glow */
#cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s ease;
}

/* Auth Page Container */
.auth-page-wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  z-index: 10;
}

/* Header brand logo in auth screens */
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  text-decoration: none;
  color: var(--color-white);
  transition: transform 0.25s ease;
}

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

.auth-brand-icon {
  width: 30px;
  height: 30px;
  color: var(--color-white);
}

.auth-brand-text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Centered Authentication Glass Card */
.auth-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  overflow: hidden;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.auth-card:hover {
  border-color: var(--color-card-hover);
}

/* Corner Reticles */
.auth-card::before,
.auth-card::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
}

.auth-card::before {
  top: 0;
  left: 0;
  border-top: 2px solid rgba(255, 255, 255, 0.45);
  border-left: 2px solid rgba(255, 255, 255, 0.45);
}

.auth-card::after {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.45);
  border-right: 2px solid rgba(255, 255, 255, 0.45);
}

/* Auth Card Header */
.auth-header {
  margin-bottom: 30px;
  text-align: left;
}

.auth-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-white-50);
  display: block;
  margin-bottom: 8px;
}

.auth-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--color-white-70);
}

/* Form Groups & Inputs */
.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white-70);
  margin-bottom: 8px;
}

.form-label-link {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-white-70);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: none;
  transition: color 0.2s ease;
}

.form-label-link:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  width: 17px;
  height: 17px;
  color: var(--color-white-50);
  pointer-events: none;
  transition: color 0.25s ease;
}

.form-input {
  width: 100%;
  height: 48px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-md);
  padding: 0 16px 0 42px;
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--color-white);
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-input:focus {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.12);
}

.form-input:focus + .input-icon,
.input-wrap:focus-within .input-icon {
  color: var(--color-white);
}

.form-input.is-invalid {
  border-color: var(--color-red) !important;
  background: rgba(255, 71, 87, 0.06);
}

.form-input.is-valid {
  border-color: rgba(56, 239, 125, 0.5);
}

/* Password Toggle Button */
.password-toggle-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--color-white-50);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.password-toggle-btn:hover {
  color: var(--color-white);
}

/* Inline Field Error Message */
.field-error-msg {
  font-size: 11.5px;
  color: var(--color-red);
  margin-top: 6px;
  display: none;
  line-height: 1.4;
}

.field-error-msg.visible {
  display: block;
}

/* Password Strength Indicator */
.password-strength-container {
  margin-top: 10px;
}

.password-strength-bars {
  display: flex;
  gap: 6px;
  height: 4px;
  margin-bottom: 6px;
}

.strength-bar {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  transition: background-color 0.3s ease;
}

.password-strength-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--color-white-50);
}

.strength-criteria {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.criteria-item {
  font-size: 10.5px;
  color: var(--color-white-50);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.25s ease;
}

.criteria-item.met {
  color: var(--color-green);
}

/* Checkbox Row */
.form-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 24px;
}

.custom-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--color-card-border);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s ease;
}

.custom-checkbox:checked {
  background: #ffffff;
  border-color: #ffffff;
}

.custom-checkbox:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid #000000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-text {
  font-size: 12.5px;
  color: var(--color-white-70);
  line-height: 1.5;
  cursor: pointer;
}

.checkbox-text a {
  color: var(--color-white);
  text-decoration: underline;
}

/* Primary Submit Button */
.btn-primary-auth {
  width: 100%;
  height: 48px;
  background: var(--color-white);
  color: #000000;
  border: 1px solid var(--color-white);
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  transition: all 0.25s ease;
}

.btn-primary-auth:hover:not(:disabled) {
  background: #000000;
  color: #ffffff;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-primary-auth:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Spinner */
.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: #000000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

.btn-primary-auth:hover .btn-spinner {
  border-color: rgba(255, 255, 255, 0.2);
  border-top-color: #ffffff;
}

.btn-primary-auth.is-loading .btn-spinner {
  display: inline-block;
}

.btn-primary-auth.is-loading .btn-text {
  opacity: 0.8;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* "OR" Divider */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 22px 0;
  color: var(--color-white-50);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-divider span {
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  font-weight: 700;
}

/* Google OAuth Button */
.btn-google-auth {
  width: 100%;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-white);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.25s ease;
}

.btn-google-auth:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.btn-google-auth:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.google-icon-svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

/* Footer Switch Links */
.auth-footer-nav {
  margin-top: 26px;
  text-align: center;
  font-size: 13px;
  color: var(--color-white-70);
}

.auth-footer-nav a {
  color: var(--color-white);
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
  transition: all 0.2s ease;
}

.auth-footer-nav a:hover {
  text-decoration: underline;
  color: var(--color-cyan);
}

/* Success Card View (Forgot Password / Reset) */
.auth-success-card {
  text-align: center;
  padding: 10px 0;
  display: none;
}

.auth-success-card.visible {
  display: block;
}

.success-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(56, 239, 125, 0.12);
  border: 1px solid rgba(56, 239, 125, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  color: var(--color-green);
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(56, 239, 125, 0.2); }
  50% { box-shadow: 0 0 25px rgba(56, 239, 125, 0.4); }
}

.success-title {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.success-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--color-white-70);
  margin-bottom: 24px;
}

/* Toast Notification Manager */
#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 400px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(14, 14, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  color: #ffffff;
  font-size: 13px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-success {
  border-color: rgba(56, 239, 125, 0.45);
}

.toast-success .toast-icon {
  color: var(--color-green);
}

.toast-error {
  border-color: rgba(255, 71, 87, 0.45);
}

.toast-error .toast-icon {
  color: var(--color-red);
}

.toast-info {
  border-color: rgba(0, 240, 255, 0.45);
}

.toast-info .toast-icon {
  color: var(--color-cyan);
}

/* Responsive */
@media (max-width: 480px) {
  .auth-card {
    padding: 32px 24px;
  }

  .auth-title {
    font-size: 1.65rem;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   ONBOARDING WIZARD, INLINE VALIDATION, OTP & LANYARD EXPERIENCE
   ══════════════════════════════════════════════════════════════════════════ */

/* Stepper Progress Bar */
.signup-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--color-white-50);
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.step-item.active {
  color: var(--color-cyan);
}

.step-item.completed {
  color: var(--color-green);
}

.step-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
}

.step-item.active .step-dot {
  border-color: var(--color-cyan);
  color: var(--color-cyan);
  background: rgba(0, 240, 255, 0.12);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.35);
}

.step-item.completed .step-dot {
  border-color: var(--color-green);
  color: var(--color-bg);
  background: var(--color-green);
}

.step-connector {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 8px;
}

.step-connector.completed {
  background: var(--color-green);
}

/* Inline Input Status Icon */
.input-status-icon {
  position: absolute;
  right: 14px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-size: 13px;
  font-weight: 700;
  transition: opacity 0.25s ease, transform 0.25s ease;
  opacity: 0;
  transform: scale(0.7);
}

.input-status-icon.is-valid {
  opacity: 1;
  transform: scale(1);
  color: var(--color-green);
}

.input-status-icon.is-invalid {
  opacity: 1;
  transform: scale(1);
  color: var(--color-red);
}

/* Password toggle adjustment when status icon is present */
.input-wrap.has-toggle .input-status-icon {
  right: 42px;
}

/* Form Helper / Status Message */
.field-status-msg {
  font-size: 11.5px;
  margin-top: 5px;
  line-height: 1.4;
  display: none;
  transition: all 0.25s ease;
}

.field-status-msg.visible {
  display: block;
}

.field-status-msg.is-error {
  color: var(--color-red);
}

.field-status-msg.is-success {
  color: var(--color-green);
}

/* Password Requirements Checklist */
.password-requirements-card {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.password-requirements-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-white-70);
  margin-bottom: 8px;
}

.pwd-rule-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--color-white-50);
  margin-bottom: 4px;
  transition: color 0.2s ease;
}

.pwd-rule-item:last-child {
  margin-bottom: 0;
}

.pwd-rule-item .rule-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  transition: all 0.25s ease;
}

.pwd-rule-item.met {
  color: var(--color-green);
}

.pwd-rule-item.met .rule-icon {
  background: var(--color-green);
  border-color: var(--color-green);
  color: #030305;
}

/* OTP 6-Digit Inputs */
.otp-container {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 24px 0 16px;
}

.otp-box {
  width: 48px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-card-border);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.otp-box:focus {
  border-color: var(--color-cyan);
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.25);
}

.otp-cooldown-text {
  text-align: center;
  font-size: 12px;
  color: var(--color-white-50);
  margin-top: 12px;
}

.btn-resend-otp {
  background: none;
  border: none;
  color: var(--color-cyan);
  font-family: var(--font-main);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  margin-left: 4px;
}

.btn-resend-otp:disabled {
  color: var(--color-white-50);
  cursor: not-allowed;
  text-decoration: none;
}

/* Form Select Dropdown Styling */
select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

select.form-input option {
  background-color: #0b0f19;
  color: #ffffff;
  padding: 10px;
}

/* College ID Card Image Upload & Preview Container */
.id-card-upload-area {
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.25s ease, background 0.25s ease;
  position: relative;
  overflow: hidden;
}

.id-card-upload-area:hover,
.id-card-upload-area.drag-over {
  border-color: var(--color-cyan);
  background: rgba(0, 240, 255, 0.04);
}

/* Iterative Upload Section & Preview Containers */
.upload-iterative-card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.upload-iterative-card:hover {
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 6px 24px rgba(0, 240, 255, 0.12);
}

.upload-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.upload-card-title {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.upload-card-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.08em;
}

.badge-pending {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.badge-attached {
  color: #38ef7d;
  background: rgba(56, 239, 125, 0.12);
  border: 1px solid rgba(56, 239, 125, 0.4);
}

.id-card-preview-container {
  display: none;
  margin-top: 14px;
  position: relative;
  border-radius: 12px;
  overflow: visible;
  border: 1px solid rgba(0, 240, 255, 0.35);
  background: #060913;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.id-card-preview-container.has-image {
  display: block;
}

.preview-media-frame {
  width: 100%;
  min-height: 180px;
  max-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #05070e;
  overflow: hidden;
  position: relative;
  border-radius: 11px 11px 0 0;
}

.preview-media-frame img {
  max-width: 100%;
  max-height: 240px;
  object-fit: contain;
  display: block;
}

.preview-actions-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(10, 16, 30, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0 11px 11px;
}

.id-card-change-btn {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: #00f0ff;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.id-card-change-btn:hover {
  background: rgba(0, 240, 255, 0.25);
  border-color: #00f0ff;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

.id-card-remove-btn {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.id-card-remove-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

/* Confirmation Summary Review Screen */
.review-summary-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 22px;
}

.review-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
}

.review-row:last-child {
  border-bottom: none;
}

.review-label {
  color: var(--color-white-50);
  font-weight: 500;
}

.review-val {
  color: #ffffff;
  font-weight: 600;
  text-align: right;
  max-width: 60%;
  word-break: break-word;
}

/* Lanyard 3D Canvas & Interactive Experience */
.lanyard-interactive-container {
  width: 100%;
  height: 520px;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, rgba(0, 240, 255, 0.08) 0%, rgba(4, 6, 14, 0.95) 75%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), inset 0 0 30px rgba(0, 240, 255, 0.05);
  margin-bottom: 20px;
}

#lanyard-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
  cursor: grab;
}

#lanyard-3d-canvas:active {
  cursor: grabbing;
}

.lanyard-hint-badge {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 14, 28, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 10.5px;
  font-family: var(--font-mono);
  color: var(--color-cyan);
  pointer-events: none;
  letter-spacing: 0.1em;
  backdrop-filter: blur(8px);
}

.lanyard-flip-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.lanyard-flip-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--color-cyan);
  color: var(--color-cyan);
}

/* ═══════════════════════════════════════════════════════════════════════
   AUTHENTICATION & ONBOARDING MASTER RESPONSIVE SYSTEM
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .auth-page {
    padding: 24px 14px 40px;
    align-items: flex-start;
  }

  .auth-card {
    padding: 28px 20px;
    width: 100%;
    max-width: 100%;
  }

  .auth-title {
    font-size: clamp(1.5rem, 5.5vw, 1.85rem);
  }

  .auth-subtitle {
    font-size: 13px;
    margin-bottom: 20px;
  }

  /* Form row dual-inputs stack vertically on tablets/mobiles */
  .form-row,
  .form-row-2 {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* Stepper on Mobile: sleek and compact */
  .signup-stepper {
    overflow-x: auto;
    padding-bottom: 12px;
    gap: 12px;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .signup-stepper::-webkit-scrollbar {
    display: none;
  }

  .step-item {
    flex-shrink: 0;
    font-size: 10.5px;
  }
}

@media (max-width: 480px) {
  .auth-page {
    padding: 16px 10px 32px;
  }

  .auth-card {
    padding: 22px 16px;
    border-radius: 14px;
  }

  .auth-input,
  .form-input {
    height: 48px;
    font-size: 14px;
  }

  .btn-auth-primary,
  .btn-primary-auth {
    height: 48px;
    font-size: 13px;
  }

  /* Responsive 6-digit OTP Inputs */
  .otp-inputs-group,
  .otp-container {
    gap: clamp(4px, 1.8vw, 8px) !important;
  }

  .otp-digit-input {
    width: clamp(38px, 12vw, 46px) !important;
    height: clamp(44px, 13vw, 52px) !important;
    font-size: clamp(18px, 5vw, 22px) !important;
  }

  /* Lanyard Card Scaler in Signup */
  .lanyard-preview-box {
    transform: scale(0.9);
    transform-origin: top center;
    margin-bottom: -20px;
  }
}

@media (max-width: 360px) {
  .auth-card {
    padding: 18px 12px;
  }

  .auth-title {
    font-size: 1.35rem;
  }

  .lanyard-preview-box {
    transform: scale(0.8);
    transform-origin: top center;
    margin-bottom: -50px;
  }
}

