html, body {
  height: 100%;
  overflow-y: auto !important;
  background: linear-gradient(135deg, #ba05cbff, #f41db3ff);
  font-family: 'Poppins', sans-serif;
}

.container, .card, .main-content {
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: fadeIn 1s ease;
  max-height: none !important;
  overflow-y: visible !important;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.photo-preview img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e5359cff;
  display: none;
  margin-bottom: 10px;
}

label.required:after {
  content: " *";
  color: red;
}

/* General reset and layout */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

body {
  background: linear-gradient(135deg, #ce12dbff, #b32ae9ff);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px;
}

/* Login/Register container */
.login-container {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .18);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.logo {
  display: block;
  width: 100%;
  height: 130px;
  object-fit: contain;
  background-color: #fff;
  border-bottom: 1px solid #eee;
  margin-bottom: 15px;
}

/* Form styling */
.login-body {
  padding: 10px 20px;
  text-align: center;
}

.login-body h2 {
  color: #222;
  font-weight: 600;
  margin-bottom: 10px;
}

.subtitle {
  color: #666;
  font-size: 13px;
  margin-bottom: 20px;
}

.input-group {
  position: relative;
  margin: 18px 0;
  text-align: left;
}

.input-group label {
  display: block;
  margin-bottom: 6px;
  color: #5a5a9f;
  font-size: 14px;
  font-weight: 600;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 12px 12px;
  border: 2px solid #d8d8d8;
  border-radius: 10px;
  font-size: 15px;
  background: #fff;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
  appearance: none;
}

.input-group input:focus,
.input-group select:focus {
  border-color: #6610f2;
  box-shadow: 0 6px 18px rgba(102, 16, 242, .12);
}

/* Buttons */
.actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  flex: 1;
  min-width: 120px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 0;
  font-weight: 600;
  cursor: pointer;
  font-size: 15px;
}

.btn-login {
  background: #f517e6ff;
  color: #ffffffff;
  box-shadow: 0 8px 18px rgba(102, 16, 242, .18);
}

.btn-register {
  background: transparent;
  color: #f210bdff;
  border: 2px solid #5905dfff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Forgot Password */
.forgot-password {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: #a708e6ff;
  text-decoration: none;
}

.forgot-password:hover {
  text-decoration: underline;
}

/* Bubble Animation */
.bubbles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bubbles span {
  position: absolute;
  bottom: -150px;
  background: rgba(255, 255, 255, .12);
  border-radius: 50%;
  animation: rise 12s linear infinite;
}

@keyframes rise {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-900px) scale(.6); opacity: 0; }
}

/* Responsive */
@media (max-width: 420px) {
  .logo { height: 100px; }
  .login-body { padding: 20px; }
}
