/* Modern Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(38, 38, 38, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: linear-gradient(145deg, var(--white), #f8f9fa);
  padding: 2rem;
  border-radius: 20px;
  width: 90%;
  max-width: 420px;
  position: relative;
  animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(218, 171, 45, 0.2);
}

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

.close {
  color: var(--gray);
  font-size: 28px;
  position: absolute;
  right: 20px;
  top: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(108, 117, 125, 0.1);
}

.close:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: rotate(90deg);
}

/* Auth Form Links */
.signup-link,
.signin-link {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
  color: var(--gray);
}

.signup-link a,
.signin-link a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.signup-link a:hover,
.signin-link a:hover {
  color: var(--secondary-color2);
  text-decoration: underline;
}

.tab-content {
  display: none;
  animation: fadeSlideIn 0.4s ease;
}

.tab-content.active {
  display: block;
}

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

/* Auth Header */
.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: block;
}

.auth-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-color1);
  margin: 0 0 0.5rem;
}

.auth-header p {
  color: var(--gray);
  font-size: 0.9rem;
  margin: 0;
}

/* Modern Form Styles */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  font-size: 1rem;
  z-index: 2;
  transition: color 0.3s ease;
}

.form-group input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 2px solid rgba(218, 171, 45, 0.2);
  border-radius: 12px;
  box-sizing: border-box;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(248, 250, 252, 0.8);
  color: var(--secondary-color1);
  text-indent: 1.5rem;
}

.form-group input::placeholder {
  color: var(--gray);
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
}

.form-group input:focus,
.form-group input:not(:placeholder-shown) {
  outline: none;
  border-color: var(--secondary-color2);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(218, 171, 45, 0.1),
    0 8px 25px rgba(218, 171, 45, 0.15);
}

.form-group input:focus::placeholder {
  color: var(--gray);
}

.form-group input:focus ~ .input-icon {
  color: var(--secondary-color2);
}

/* No button overrides - using unified button.css */



/* Responsive Design */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    padding: 1.5rem;
    margin: 1rem;
    max-height: 90vh;
  }

  .auth-icon {
    font-size: 2.5rem;
  }

  .auth-header h2 {
    font-size: 1.25rem;
  }

  .form-group input {
    padding: 0.875rem 0.875rem 0.875rem 2.75rem;
    font-size: 0.9rem;
  }

  .input-icon {
    left: 0.875rem;
    font-size: 0.9rem;
  }

  .form-group label {
    left: 2.75rem;
    font-size: 0.9rem;
  }

  .btn-primary {
    padding: 0.75rem 1.5rem;
    width: auto;
    min-width: 120px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .modal-content {
    width: 95%;
    padding: 1.25rem;
    margin: 0.5rem;
    border-radius: 16px;
    max-height: 95vh;
  }

  .auth-header {
    margin-bottom: 1.5rem;
  }

  .auth-icon {
    font-size: 2rem;
  }

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

  .btn-primary {
    padding: 0.75rem 1.5rem;
    width: auto;
    min-width: 120px;
    font-size: 0.9rem;
  }
}

/* Global Messages */
.global-message {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 9999;
  padding: 16px 24px;
  color: var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  max-width: 350px;
  animation: slideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(10px);
}

@keyframes slideIn {
  from {
    transform: translateX(100%) scale(0.8);
    opacity: 0;
  }
  to {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
  to {
    transform: translateX(100%) scale(0.8);
    opacity: 0;
  }
}



/* Checkbox styling */
.checkbox-container {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-primary);
  text-align: center;
}

.checkbox-container input[type="checkbox"] {
  margin-left: 10px;
}

.checkbox-container a {
  color: var(--primary-color);
  text-decoration: none;
}

.checkbox-container a:hover {
  text-decoration: underline;
}
