/* Center modal vertically */
.auth-modal {
  padding: 0 !important;
}

.auth-modal .modal-dialog {
  max-width: 450px;
  width: 100%;
  margin: 0 auto;
  padding: 15px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

.auth-modal.in .modal-dialog {
  transform: translate(-50%, -50%);
}

.auth-modal.fade .modal-dialog {
  transform: translate(-50%, -40%);
  transition: transform 0.3s ease-out;
}

.auth-modal.fade.in .modal-dialog {
  transform: translate(-50%, -50%);
}

.auth-modal .modal-content {
  border-radius: 12px;
  border: 0;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.auth-modal .auth-modal-grid {
  display: block;
}

.auth-modal .auth-modal-side {
  display: none;
}

.auth-modal .auth-modal-main {
  padding: 32px 32px 28px;
  background: #fff;
}

.auth-modal .auth-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.auth-modal .auth-modal-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
}

.auth-modal .auth-close {
  border: 0;
  background: transparent;
  color: #999;
  font-size: 28px;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease;
}

.auth-modal .auth-close:hover {
  color: #333;
}

.auth-modal .auth-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: #f5f6f7;
  border-radius: 10px;
  margin-bottom: 24px;
}

.auth-modal .auth-tab-btn {
  flex: 1;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 15px;
  color: #666;
  transition: all 0.2s ease;
  cursor: pointer;
}

.auth-modal .auth-tab-btn.is-active {
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.auth-modal .auth-form .form-group {
  position: relative;
  margin-bottom: 16px;
}

.auth-modal .auth-form .form-control {
  height: 50px;
  border-radius: 10px;
  border: 1px solid #e0e3e7;
  background: #fafbfc;
  padding-left: 44px;
  box-shadow: none;
  font-size: 15px;
  transition: all 0.2s ease;
}

.auth-modal .auth-form .form-control:focus {
  border-color: #1976d2;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
  outline: none;
}

.auth-modal .auth-form .input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  pointer-events: none;
  font-size: 16px;
}

.auth-modal .auth-form .btn-auth {
  height: 50px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.3px;
  margin-top: 8px;
  transition: all 0.2s ease;
}

.auth-modal .auth-form .btn-auth:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 34, 45, 0.3);
}

.auth-modal .auth-form .auth-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  font-size: 14px;
}

.auth-modal .auth-form .auth-links a {
  color: #1976d2;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-modal .auth-form .auth-links a:hover {
  color: #1565c0;
  text-decoration: underline;
}

.auth-modal .auth-divider {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid #e8eaed;
  color: #666;
  font-size: 12px;
  text-align: center;
  line-height: 1.5;
}

.auth-modal .auth-divider a {
  color: #1976d2;
  text-decoration: none;
  font-weight: 600;
}

.auth-modal .auth-divider a:hover {
  text-decoration: underline;
}

/* Backdrop blur effect - when auth modal is open */
.modal-backdrop {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: rgba(0, 0, 0, 0.5) !important;
}

@media (max-width: 767px) {
  .auth-modal .modal-dialog {
    margin: 0 auto;
    max-width: calc(100% - 40px);
    min-height: calc(100% - 2rem);
    padding: 1rem;
  }

  .auth-modal .auth-modal-main {
    padding: 24px 20px;
  }
  
  .auth-modal .auth-modal-title {
    font-size: 20px;
  }
  
  .auth-modal .auth-form .form-control {
    height: 48px;
  }
  
  .auth-modal .auth-form .btn-auth {
    height: 48px;
  }
}


