/* assets/css/auth.css - Aerofoundry Visitor Auth & Modal Styling */

.af-auth-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 13px;
}

.af-auth-nav a {
  color: #333333;
  text-decoration: none !important;
  font-weight: 500;
  transition: color 0.2s ease;
}

.af-auth-nav a:hover {
  color: #0056b3;
  text-decoration: underline !important;
}

.af-auth-divider {
  color: #999;
  user-select: none;
}

.af-user-badge {
  color: #004085;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Modal Overlay */
.af-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.af-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Box */
.af-modal {
  background: #ffffff;
  width: 92%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 8px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  padding: 24px 20px;
  position: relative;
  transform: translateY(-12px);
  transition: transform 0.25s ease;
  box-sizing: border-box;
}

@media (min-width: 480px) {
  .af-modal {
    padding: 28px 32px;
  }
}

/* Mobile Auth Navigation in Drawer */
.af-mobile-auth-wrapper {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 10px;
  padding-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.af-mobile-auth-item {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none !important;
  display: inline-block;
  padding: 6px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease;
}

.af-mobile-auth-item:hover,
.af-mobile-auth-item:focus {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.af-modal-overlay.active .af-modal {
  transform: translateY(0);
}

.af-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease;
}

.af-modal-close:hover {
  color: #0f172a;
}

.af-modal-title {
  margin: 0 0 6px 0;
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.af-modal-subtitle {
  margin: 0 0 20px 0;
  font-size: 13px;
  color: #64748b;
}

/* Form Styles */
.af-form-group {
  margin-bottom: 16px;
  text-align: left;
}

.af-form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #334155;
  margin-bottom: 6px;
}

.af-form-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  color: #0f172a;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.af-form-input:focus {
  outline: none;
  border-color: #0284c7;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.af-btn-primary {
  width: 100%;
  padding: 11px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: #0f172a;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  margin-top: 8px;
}

.af-btn-primary:hover {
  background: #1e293b;
}

.af-btn-primary:active {
  transform: scale(0.99);
}

.af-auth-alert {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}

.af-auth-alert.error {
  display: block;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.af-auth-alert.success {
  display: block;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.af-modal-footer {
  margin-top: 18px;
  font-size: 13px;
  text-align: center;
  color: #64748b;
}

.af-modal-footer a {
  color: #0284c7;
  text-decoration: none;
  font-weight: 600;
}

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