/**
 * =========================================================================
 * GK TODAY HINDI — Authentication Modal & Forms CSS
 * =========================================================================
 */

.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  animation: fadeIn .3s ease-in-out;
}

.popup-content {
  background: #fff;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  position: relative;
  width: 90%;
  max-width: 420px;
  text-align: center;
  transform: translateY(-20px);
  opacity: 0;
  animation: slideIn 0.5s ease-out forwards;
}

.popup-overlay.active .popup-content {
  transform: translateY(0);
  opacity: 1;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  background: #ff4d4d;
  color: #fff;
  font-size: 20px;
  line-height: 32px;
  text-align: center;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 77, 77, .3);
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: #c00;
  transform: rotate(90deg) scale(1.1);
}

.form-group {
  margin-bottom: 15px;
}

.form-control {
  border: 1.5px solid #d1d9ff;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  width: 100%;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #4a6cfa;
  box-shadow: 0 0 8px rgba(74, 108, 250, .2);
  outline: none;
}

label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 5px;
  display: block;
  text-align: left;
}

.required {
  color: #ff4d4d;
}

.btn {
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  text-decoration: none;
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-success {
  background: #28a745;
  color: #fff;
  border: none;
}

.btn-success:hover {
  background: #218838;
  color: #fff;
}

.btn-primary {
  background: #4a6cfa;
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: #3b5ae6;
  color: #fff;
}

.g_id_signin {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 15px auto;
}

.password-toggle {
  position: absolute;
  top: 66%;
  right: 15px;
  transform: translateY(-50%);
  cursor: pointer;
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
  z-index: 10;
}

.error-message {
  display: none;
  color: #dc2626;
  font-size: 13px;
  margin-top: 10px;
  padding: 8px;
  background: #fee2e2;
  border-radius: 6px;
}

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

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