/* Auth Modal Styles */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.modal-card.auth-card {
  width: 95%;
  max-width: 480px;
  max-height: 90vh;
  border-radius: 24px;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #1e1b2f 0%, #2a1f45 100%);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5);
  position: relative;
}

.back-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

/* .auth-header styles moved to auth-page-upgraded.css */


.auth-tabs-container {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 4px;
  margin: 0 32px 32px;
}

.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 16px 24px;
  color: #a1a1aa;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 16px;
}

.auth-tab.active {
  background: linear-gradient(135deg, #a855f7, #3b82f6);
  color: white;
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.3);
}

.auth-form {
  padding: 0 32px 40px;
  animation: slideIn 0.3s ease;
}

.auth-form.hidden {
  display: none;
}

/* .role-selector/.role-card styles moved to auth-page-upgraded.css (modal versions deprecated in favor of page) */
.role-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.role-option {
  cursor: pointer;
}


.form-group.full-width input,
.form-group.full-width select,
.form-group.full-width textarea {
  width: 100%;
}

.btn-login {
  background: linear-gradient(135deg, #a855f7, #3b82f6);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(168, 85, 247, 0.4);
}

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

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

@media (max-width: 480px) {
  .modal-card.auth-card {
    margin: 20px;
    border-radius: 20px;
  }
  
  .auth-tabs-container {
    margin: 0 20px 24px;
  }
}
