/* assets/css/auth.css - Aerofoundry Visitor Auth & Modal Styling (Dark Graphite & Defense Amber) */

/* Nav Auth Links in Top Bar */
.af-auth-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading, 'neosansregular', sans-serif);
  font-size: 0.85rem;
}

.af-auth-nav a {
  color: #f2f4f8;
  text-decoration: none !important;
  font-weight: 500;
  transition: color 0.2s ease;
}

.af-auth-nav a:hover {
  color: #f7941e;
  text-decoration: none !important;
}

.af-auth-divider {
  color: #4b5563;
  user-select: none;
  font-weight: 300;
}

.af-user-badge {
  color: #f7941e;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(247, 148, 30, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(247, 148, 30, 0.25);
}

/* Modal Overlay */
.af-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 12, 15, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 16px;
}

.af-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Box */
.af-modal {
  background: #1c2026;
  border: 1px solid #363d4a;
  color: #f2f4f8;
  font-family: var(--font-body, 'neosansregular', sans-serif);
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 1px rgba(255, 255, 255, 0.1);
  padding: 32px 28px;
  position: relative;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.af-modal-overlay.active .af-modal {
  transform: translateY(0) scale(1);
}

.af-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #8b949e;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.af-modal-close:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

.af-modal-title {
  margin: 0 0 6px 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-heading, 'neosansregular', sans-serif);
  letter-spacing: -0.015em;
}

.af-modal-subtitle {
  margin: 0 0 24px 0;
  font-size: 0.9rem;
  color: #9da7b5;
  line-height: 1.5;
}

/* Form Elements */
.af-form-group {
  margin-bottom: 18px;
  text-align: left;
}

.af-form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9da7b5;
  margin-bottom: 7px;
  font-family: var(--font-heading, 'neosansregular', sans-serif);
}

.af-form-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.92rem;
  border: 1px solid #333a46;
  border-radius: 6px;
  background: #14171b;
  color: #ffffff;
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.af-form-input:focus {
  outline: none;
  border-color: #f7941e;
  background: #181c22;
  box-shadow: 0 0 0 3px rgba(247, 148, 30, 0.2);
}

.af-form-input::placeholder {
  color: #5d6778;
}

.af-btn-primary {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  background: #f7941e;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-heading, 'neosansregular', sans-serif);
  transition: background-color 0.2s ease, transform 0.15s ease;
  margin-top: 10px;
}

.af-btn-primary:hover {
  background: #ffaa33;
}

.af-btn-primary:active {
  transform: scale(0.99);
}

.af-auth-alert {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.88rem;
  margin-bottom: 20px;
  display: none;
  line-height: 1.45;
}

.af-auth-alert.error {
  display: block;
  background: rgba(185, 28, 28, 0.15);
  border: 1px solid rgba(185, 28, 28, 0.4);
  color: #fca5a5;
}

.af-auth-alert.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.af-modal-footer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #2d333d;
  font-size: 0.88rem;
  text-align: center;
  color: #9da7b5;
}

.af-modal-footer a {
  color: #f7941e;
  text-decoration: none;
  font-weight: 600;
}

.af-modal-footer a:hover {
  text-decoration: underline;
}

/* Restricted Lock Screen Card */
.af-lock-container {
  background-color: var(--bg-surface, #1e2227);
  border: 1px solid var(--border-subtle, #2d333d);
  border-radius: 12px;
  padding: 48px 32px;
  text-align: center;
  max-width: 680px;
  margin: 40px auto;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.af-lock-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  color: #f7941e;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(247, 148, 30, 0.12);
  border-radius: 50%;
  border: 1px solid rgba(247, 148, 30, 0.3);
}

.af-lock-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.af-lock-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.af-lock-desc {
  color: #9da7b5;
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto 28px;
}

.af-lock-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
