/* ============================================
   MODAL STYLES - FIXED
   ============================================ */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.modal.active {
  display: flex;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal__content {
  position: relative;
  background: white;
  border-radius: 16px;
  max-width: 450px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 28px;
  color: #18232f;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.modal__close:hover {
  background: #f5f5f5;
  transform: rotate(90deg);
}

/* ============================================
   AUTH FORM
   ============================================ */

.auth-form__header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-form__logo {
  width: 120px;
  height: auto;
  margin: 0 auto 16px;
  display: block;
}

.auth-form__header h2 {
  font-family: 'Arnet-Bold', sans-serif;
  font-size: 1.5rem;
  color: #18232f;
  margin-bottom: 8px;
}

.auth-form__header p {
  font-family: 'Arnet-Regular', sans-serif;
  font-size: 0.95rem;
  color: #5a6677;
  margin: 0;
}

/* ============================================
   AUTH FORM BODY
   ============================================ */

.auth-form__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Social Login Buttons - Extra Spacing */
u-social-login-button {
  display: block;
  margin-bottom: 8px;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
  color: #8a8a8a;
  font-size: 0.875rem;
  font-family: 'Arnet-Regular', sans-serif;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}

.divider span {
  padding: 0 12px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 480px) {
  .modal__content {
    width: 95%;
    padding: 24px 20px;
    max-height: 95vh;
  }

  .auth-form__logo {
    width: 100px;
  }

  .auth-form__header h2 {
    font-size: 1.3rem;
  }
}