/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

/* Body */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #1e1e2f, #2e2e3f);
  color: #fff;
}

/* Icon */
.icon {
  padding-right: 10px;
}

/* Container */
.register-container {
  display: flex;
  flex-direction: column;
  text-align: center;
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  background: rgba(30,30,40,0.95);
  border-radius: 12px;
  box-shadow: 10px 10px 20px rgba(0,0,0,0.25);
  animation: fadeIn 1s ease forwards;
}

/* Form */
.register-form h2 {
  text-align: center;
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.register-form a {
  color: white;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.register-form label {
  text-align: left !important;
  display: block;
  margin-bottom: 0.3rem;
  margin-top: 1rem;
}

.register-form input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 2px solid #555;
  border-radius: 8px;
  background: #1e1e2f;
  color: #fff;
  transition: border 0.3s, transform 0.2s;
}

.register-form input:focus {
  border-color: white;
  outline: none;
  transform: scale(1.02);
}

.invalid {
  border: 2px solid #ff3413 !important;
  color: #ff4e31 !important;
}

.invalid::placeholder {
  color: #ff4e31;
  opacity: 0.7;
}

.invalid::ms-input-placeholder {
  color: #ff4e31;
  opacity: 0.7;
}

.register-form .error-message {
  display: none;
  text-align: left !important;
  font-size: 0.8rem;
  color: #ff4c4c;
  margin-top: 0.2rem;
  animation: shake 0.3s ease;
}

.register-form button[type="submit"]{
  position: relative;
  width: 100%;
  padding: 0.8rem;
  margin-top: 1.5rem;
  border: 2px solid white;
  border-radius: 500px;
  background: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 1000;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.register-form button:hover[type="submit"] {
  background: black;
  border: none;
  transform: scale(1.05);
}

.register-form button:active[type="submit"] {
  transform: scale(1);
}

/* Or Divider / Sepeartor */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 10px 0;
}

.divider hr {
  flex: 1;
  border: none;
  height: 1.5px;
  background-color: #c5c5c5;
}

.divider span {
  margin: 0 5px;
  color: #989898;
  font-weight: bold;
}

/* Google Button */
#googleBtn{
  border: 2px solid white;
  border-radius: 500px;
  cursor: pointer;
  text-align: center;
  background: none;
  width: 100%;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
}

#googleBtn img {
  margin-right: 8px;
  height: 28px;
  width: 28px;
}

#googleBtn span {
  font-size: 14px;
  font-weight: 600;
  color: white;
  background: none;
}

#googleBtn:hover span {
  color: black;
}

#googleBtn:hover {
  background: white;
  color: black;
  border: none1;
  transform: scale(1.05);
}

#googleBtn:active {
  transform: scale(1);
}

.register-form > span {
  display: block;
  font-size: 16px;
  color: #b0b0b0;
  padding: 0;
  margin-bottom: 1rem;
}

.question {
  margin-top: 15px;
}

/* Popup Overlay */
.popup {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.popup.visible {
  opacity: 1;
  pointer-events: all;
}

/* Popup Content Box */
.popup-box {
  background: #1e1e2f;
  width: 90%;
  max-width: 380px;
  padding: 1.8rem 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  animation: popupScale 0.3s ease-out;
}

.popup-box h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: #fff;
  font-weight: 700;
}

.popup-box p {
  font-size: 1rem;
  color: #d1d1d1;
  margin-bottom: 1.5rem;
}

/* Button */
.popup-box button {
  width: 100%;
  padding: 0.7rem;
  background: #6c63ff;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.15s;
}

.popup-box button:hover {
  background: #574fcf;
  transform: scale(1.03);
}

.popup-box img {
  height: 64px;
  width: 64px;
}

/* Scale entry animation */
@keyframes popupScale {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(5px);
  }
  75% {
    transform: translateX(-5px);
  }
}