/* Modal Styles - Redesigned for My Account */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 35, 102, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1050;
}

.modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
}

.modal-content {
  position: relative;
  background-color: #002366;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  max-width: 480px;
  width: 100%;
  height: 520px; /* Fixed height */
  overflow: hidden;
  animation: modalSlideIn 0.3s ease-out;
  font-family: 'Noto Sans', sans-serif;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 2rem 1rem 2rem;
  border-bottom: none;
}

.modal-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFFFFF;
  font-family: 'Noto Sans', sans-serif;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #FFFFFF;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.25rem;
  transition: all 0.2s ease-in-out;
  opacity: 0.7;
}

.modal-close:hover, .modal-close:focus {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.1);
}

.modal-close:focus {
  outline: 2px solid #FFFFFF;
  outline-offset: 2px;
}

.modal-body {
  padding: 0 2rem 2rem 2rem;
  height: calc(100% - 120px);
  display: flex;
  flex-direction: column;
}

/* Tab Navigation */
.tab-nav {
  display: flex;
  margin-bottom: 2rem;
  gap: 0.5rem;
}

.tab-button {
  flex: 1;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 1px solid #FF4F00;
  font-weight: 500;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border-radius: 50px;
  font-family: 'Noto Sans', sans-serif;
  font-size: 14px;
}

.tab-button:hover {
  background-color: #FF4F00;
  color: #FFFFFF;
}

.tab-button.active {
  background-color: #FF4F00;
  color: #FFFFFF;
  font-weight: 700;
  border-color: #FF4F00;
}

.tab-button:focus {
  outline: 2px solid #FFFFFF;
  outline-offset: 2px;
}

.tab-panel {
  display: none;
  flex: 1;
}

.tab-panel.active {
  display: flex;
  flex-direction: column;
}

/* Form Styles */
.auth-form {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #FFFFFF;
  font-family: 'Noto Sans', sans-serif;
  font-size: 14px;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: 1px solid #FFFFFF;
  border-radius: 8px;
  color: #FFFFFF;
  font-size: 14px;
  font-family: 'Noto Sans', sans-serif;
  transition: all 0.2s ease-in-out;
}

.form-input:focus {
  outline: none;
  border-color: #FF4F00;
  box-shadow: 0 0 0 2px rgba(255, 79, 0, 0.2);
}

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

/* Submit Button */
.auth-submit {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background-color: #FFFFFF;
  color: #002366;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  font-family: 'Noto Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  margin-top: auto;
}

.auth-submit:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.auth-submit:active {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
  transform: translateY(0);
}

.auth-submit:focus {
  outline: 2px solid #FF4F00;
  outline-offset: 2px;
}

/* Message Styles */
.auth-message {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 14px;
  font-family: 'Noto Sans', sans-serif;
}

.auth-message.error {
  background-color: rgba(220, 53, 69, 0.2);
  border: 1px solid rgba(220, 53, 69, 0.5);
  color: #FFFFFF;
}

.auth-message.success {
  background-color: rgba(40, 167, 69, 0.2);
  border: 1px solid rgba(40, 167, 69, 0.5);
  color: #FFFFFF;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .modal-content {
    max-width: 90%;
    height: 480px;
  }
  
  .modal-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
  }
  
  .modal-body {
    padding: 0 1.5rem 1.5rem 1.5rem;
  }
  
  .tab-nav {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .tab-button {
    flex: none;
  }
}

