* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: rgb(182, 120, 253);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.message {
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 0.95em;
  font-weight: 500;
  text-align: center;
  display: none;
}

.message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.login-container {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
  text-align: center;
  position: relative;
  z-index: 1;
  max-height: 90vh;
}

.login-title {
  font-family: "Poetsen One", sans-serif;
  color: rgb(117, 20, 117);
  margin-bottom: 25px;
  font-size: 28px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

.form-group {
  position: relative;
  margin-bottom: 20px;
  text-align: left;
}

.form-row {
  display: flex;
  gap: 15px;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9em;
  color: #181818;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="phone_number"],
.form-group input[type="text"],
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1em;
  color: #333;
  transition: all 0.3s ease;
  background-color: #f9f9f9;
}

.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="phone_number"]:focus,
.form-group input[type="text"]:focus,
.form-group select:focus {
  border-color: rgb(182, 120, 253);
  box-shadow: 0 0 0 3px rgba(182, 120, 253, 0.2);
  outline: none;
  background-color: #fff;
}

#dateofbirth {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1em;
  color: #525252;
  background-color: #f9f9f9;
}

.form-group input:not(:placeholder-shown),
input[type="date"]:valid,
textarea:not(:placeholder-shown) {
  color: #181818 !important;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 52px;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  font-size: 1em;
  padding: 5px;
}

.password-toggle:hover {
  color: #333;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  font-size: 0.9em;
}

.forgot-password {
  color: rgb(117, 20, 117);
  text-decoration: none;
  font-weight: 500;
}

.forgot-password:hover {
  text-decoration: underline;
}

.login-button {
  width: 100%;
  padding: 15px;
  background-color: rgb(182, 120, 253);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(182, 120, 253, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-button:hover {
  background-color: rgb(160, 100, 230);
  box-shadow: 0 8px 20px rgba(182, 120, 253, 0.6);
  transform: translateY(-2px);
}

.login-button:active {
  transform: translateY(-1px);
}

.login-button.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.social-login {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

.social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  border: 1px solid #eee;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-size: 1.2em;
  color: #555;
  transition: all 0.3s ease;
}

.social-button:hover {
  border-color: rgb(182, 120, 253);
  color: rgb(182, 120, 253);
  box-shadow: 0 5px 15px rgba(182, 120, 253, 0.2);
  transform: translateY(-2px);
}

.signup-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  font-size: 0.95em;
  color: #555;
}

.signup-link a {
  color: rgb(117, 20, 117);
  text-decoration: none;
  font-weight: 600;
}

.signup-link a:hover {
  text-decoration: underline;
}

.button {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.button button {
  background-color: rgb(194, 156, 228);
  color: rgb(59, 4, 59);
  padding: 6px 22px;
  border-radius: 18px;
  border: none;
  font-size: 15px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

.button button:hover {
  background-color: rgb(56, 4, 59);
  color: rgb(223, 200, 243);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .login-container {
    padding: 30px 25px;
    max-height: 95vh;
  }

  .login-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .form-options {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .social-login {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .login-container {
    padding: 30px 20px;
  }

  .login-title {
    font-size: 24px;
  }

  .login-button {
    padding: 12px;
    font-size: 1em;
  }

  .modal-content {
    padding: 20px;
  }

  .modal-content h2 {
    font-size: 24px;
  }
}
