.register-container {
  min-height: 100vh;
  /* background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
  padding-top: 130px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.register-form {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 40px 30px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.register-form h2 {
  color: #ff4655;
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.2rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
}

.register-form input {
  width: 100%;
  padding: 15px 20px;
  margin-bottom: 20px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.register-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.register-form input:focus {
  outline: none;
  border-color: #ff4655;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 15px rgba(255, 70, 85, 0.3);
  transform: translateY(-2px);
}

.register-form input:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.password-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.password-wrapper input {
  padding-right: 50px;
  margin-bottom: 0;
}

.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  background: none;
  border: none;
  font-size: 1.2rem;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-password:hover {
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.toggle-password:focus {
  outline: none;
}

.eye-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.register-form button[type="submit"] {
  width: 100%;
  padding: 15px;
  background: linear-gradient(45deg, #ff4655, #ff6b7a);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  letter-spacing: 1px;
}

.register-form button[type="submit"]:hover:not(:disabled) {
  background: linear-gradient(45deg, #ff2e3e, #ff5564);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 70, 85, 0.4);
}

.register-form button[type="submit"]:active {
  transform: translateY(0);
}

.register-form button[type="submit"]:disabled {
  background: #666;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.error-msg, .success-msg {
    padding: 0.8rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: left;
    animation: shake 0.5s ease-in-out;
}

.error-msg {
    background-color: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.5);
    color: #ff6b6b;
    border-left: 4px solid #ff6b6b;
}

.success-msg {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #34d399;
    border-left: 4px solid #34d399;
}


@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.register-link {
    margin-top: 1.5rem;
    color: #9ca3af;
}

.register-link a {
    color: #ff4655;
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 480px) {
  .register-form {
    padding: 30px 20px;
    margin: 10px;
  }
  
  .register-form h2 {
    font-size: 1.8rem;
  }
  
  .register-form input {
    padding: 12px 15px;
  }
  
  .password-wrapper input {
    padding-right: 45px;
  }
  
  .toggle-password {
    right: 12px;
  }
}

