/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

/* Layout */
.main-container {
  display: flex;
  height: 100vh;
}

/* LEFT PANEL */
.left-panel {
  flex: 1;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

/* Glow animation */
.left-panel::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  top: -60px;
  left: -60px;
  filter: blur(60px);
  animation: float 6s infinite alternate;
}

@keyframes float {
  from { transform: translate(0,0); }
  to { transform: translate(100px,100px); }
}

.left-panel h1 {
  font-size: 32px;
  margin-bottom: 15px;
}

.left-panel p {
  margin-bottom: 20px;
  opacity: 0.9;
}

.left-panel ul {
  list-style: none;
}

.left-panel li {
  margin-bottom: 10px;
}

/* RIGHT PANEL */
.right-panel {
  flex: 1;
  background: #f8fafc;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* CARD */
.register-card {
  width: 360px;
  padding: 30px;
  border-radius: 16px;
  background: white;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  animation: slideUp 0.6s ease;
  transition: 0.3s;
}

.register-card:hover {
  transform: translateY(-5px);
}

/* Animation */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.register-card h2 {
  text-align: center;
  margin-bottom: 20px;
}

/* Inputs */
.input-group {
  margin-bottom: 15px;
}

.input-group input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
  transition: 0.3s;
}

.input-group input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99,102,241,0.2);
}

/* Button */
.register-btn {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(90deg, #6366f1, #06b6d4);
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.register-btn:hover {
  transform: scale(1.03);
}

/* Error */
.error-msg {
  background: #fee2e2;
  color: #dc2626;
  padding: 8px;
  border-radius: 6px;
  margin-bottom: 10px;
}

/* Links */
.extra-links {
  margin-top: 15px;
  text-align: center;
}

.extra-links a {
  color: #6366f1;
  text-decoration: none;
}

.extra-links a:hover {
  text-decoration: underline;
}


/* Password Field Fix */
.password-group {
  margin-bottom: 15px;
}

.password-wrapper {
  position: relative;
  width: 100%;
}

.password-wrapper input {
  width: 100%;
  padding: 10px;
  padding-right: 40px; /* space for icon */
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
}

/* Eye Icon */
.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 16px;
  color: #555;
}

/* Optional hover */
.toggle-password:hover {
  color: #000;
}