/* Brand Colors */
:root {
  --beymatix-green: #9ED13C;
  --beymatix-cyan: #29C5BB;
  --beymatix-green-light: #B8E56A;
  --beymatix-cyan-light: #4ED9CF;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* App Container with Brand Gradient Background */
.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--beymatix-green) 0%, var(--beymatix-cyan) 100%);
  position: relative;
  overflow: hidden;
  padding: 2rem 1rem;
}

.app-container::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.app-container::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-20px) translateX(20px);
  }
}

/* Glass Morphism Card */
.glass-card {
  width: 100%;
  max-width: 450px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 8px 32px 0 rgba(41, 197, 187, 0.2),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 1;
}

/* Logo */
.logo {
  max-width: 140px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
  margin-bottom: 1.5rem;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--beymatix-green) 0%, var(--beymatix-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.5rem;
}

/* Glass Input Groups */
.glass-input {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  overflow: hidden;
  transition: all 0.3s ease;
}

.glass-input:focus-within {
  background: rgba(255, 255, 255, 0.45);
  border-color: var(--beymatix-cyan);
  box-shadow: 0 4px 16px rgba(41, 197, 187, 0.25);
}

.glass-input .input-group-text {
  background: transparent;
  border: none;
  color: var(--beymatix-cyan);
  padding: 0.75rem 1rem;
}

.glass-input .form-control {
  background: transparent;
  border: none;
  color: #333;
  padding: 0.75rem 1rem;
  font-weight: 500;
}

.glass-input .form-control::placeholder {
  color: rgba(51, 51, 51, 0.5);
}

.glass-input .form-control:focus {
  background: transparent;
  box-shadow: none;
  outline: none;
}

/* Eye Button */
.eye-btn {
  background: transparent;
  border: none;
  color: var(--beymatix-cyan);
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.eye-btn:hover {
  background: rgba(41, 197, 187, 0.1);
  color: var(--beymatix-green);
}

.eye-btn:focus {
  box-shadow: none;
}

/* Gradient Button */
.gradient-btn {
  background: linear-gradient(135deg, var(--beymatix-green) 0%, var(--beymatix-cyan) 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: 600;
  padding: 0.875rem 2rem;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(41, 197, 187, 0.35);
  position: relative;
  overflow: hidden;
}

.gradient-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.gradient-btn:hover::before {
  left: 100%;
}

.gradient-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(41, 197, 187, 0.45);
  background: linear-gradient(135deg, var(--beymatix-green-light) 0%, var(--beymatix-cyan-light) 100%);
}

.gradient-btn:active {
  transform: translateY(0);
}

/* Social Buttons */
.social-btn {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  color: var(--beymatix-cyan);
  font-size: 1.25rem;
  padding: 0.75rem;
  transition: all 0.3s ease;
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.5);
  border-color: var(--beymatix-cyan);
  color: var(--beymatix-green);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(41, 197, 187, 0.25);
}

.social-btn:active {
  transform: translateY(0);
}

/* Sign Up Link */
.signup-link {
  color: var(--beymatix-cyan);
  font-weight: 600;
  transition: all 0.3s ease;
}

.signup-link:hover {
  color: var(--beymatix-green);
  text-decoration: underline !important;
}

/* Text Muted Override */
.text-muted {
  color: rgba(51, 51, 51, 0.75) !important;
}

/* Responsive */
@media (max-width: 576px) {
  .glass-card {
    max-width: 90%;
    margin: 0;
  }

  .logo {
    max-width: 110px;
  }

  .gradient-text {
    font-size: 2rem;
  }

  .social-btn {
    font-size: 1.1rem;
  }
}


/* ensure inputs fill nicely inside input-group */
.glass-input .form-control {
  border-radius: 0;
  height: 48px;
}

/* remove bootstrap default outline glow (we already have focus style) */
.glass-input .form-control:focus {
  box-shadow: none !important;
}

/* forgot password link */
.muted-link {
  color: rgba(51, 51, 51, 0.75);
  text-decoration: none;
  font-weight: 600;
}
.muted-link:hover {
  color: var(--beymatix-cyan);
  text-decoration: underline;
}

/* if allauth renders ul.errorlist */
.errorlist {
  margin: 6px 0 0 0;
  padding-left: 18px;
  color: #b42318;
  font-size: 0.85rem;
}

