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

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  /* VIBRANT GRADIENT BACKGROUND */
  background: 
    radial-gradient(ellipse 800px 600px at 20% 30%, rgba(138, 43, 226, 0.25), transparent),
    radial-gradient(ellipse 600px 500px at 80% 20%, rgba(236, 72, 153, 0.2), transparent),
    radial-gradient(ellipse 700px 550px at 10% 80%, rgba(249, 115, 22, 0.15), transparent),
    radial-gradient(ellipse 650px 500px at 90% 70%, rgba(147, 51, 234, 0.2), transparent),
    #150a2e;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Login Container - SINGLE PAGE FIT */
.login-container {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  height: 100vh;
}

/* Logo Container - OPTIMIZED SIZE */
.logo-container {
  background: #0a0a0a;
  width: 420px;
  height: 100px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  padding: 10px;
  flex-shrink: 0;
}

.logo-img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
}

/* Tagline - GRADIENT TEXT */
.tagline {
  background: linear-gradient(90deg, #e91e8c 0%, #a855f7 35%, #f97316 65%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 15px;
  letter-spacing: 4px;
  text-align: center;
  margin-bottom: 25px;
  font-weight: 500;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* Welcome Heading */
.welcome-heading {
  color: #ffffff;
  font-size: 34px;
  font-weight: 300;
  text-align: center;
  margin-bottom: 12px;
  font-family: "Segoe UI", -apple-system, system-ui, sans-serif;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

/* Subheading */
.subheading {
  color: #b0a0c8;
  font-size: 15px;
  font-weight: 300;
  text-align: center;
  margin-bottom: 28px;
  font-family: "Segoe UI", -apple-system, system-ui, sans-serif;
  letter-spacing: 0.2px;
  flex-shrink: 0;
}

/* Form Container - COMPACT */
.form-container {
  background: rgba(30, 20, 45, 0.5);
  width: 580px;
  padding: 38px 60px;
  border-radius: 16px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(100, 80, 130, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

/* Form */
.login-form {
  width: 100%;
}

/* Error Messages */
.error-message {
  color: #ff6b6b;
  font-size: 13px;
  margin-bottom: 16px;
  text-align: center;
  padding: 9px;
  background: rgba(255, 107, 107, 0.1);
  border-radius: 7px;
  border: 1px solid rgba(255, 107, 107, 0.3);
}

/* Input Group */
.input-group {
  margin-bottom: 18px;
  position: relative;
  width: 100%;
}

.input-group label {
  display: block;
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

/* Input Fields */
.input-group input[type="text"],
.input-group input[type="password"],
.input-group input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  color: #ffffff;
  background: #271d3d;
  border: 1px solid rgba(100, 80, 130, 0.15);
  border-radius: 8px;
  outline: none;
  transition: all 0.3s ease;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

.input-group input[type="text"]::placeholder,
.input-group input[type="password"]::placeholder,
.input-group input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.25);
  opacity: 1;
}

.input-group input[type="text"]:focus,
.input-group input[type="password"]:focus,
.input-group input[type="email"]:focus {
  border-color: rgba(138, 94, 186, 0.3);
  background: #2a2042;
  outline: none;
}

/* Password Container */
.password-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-container input {
  padding-right: 45px;
}

/* Toggle Password Icon */
.toggle-password {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #9a8ab5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  transition: color 0.3s ease;
}

.toggle-password svg {
  width: 20px;
  height: 20px;
}

.toggle-password:hover {
  color: #c0b0d8;
}

/* Checkbox Container */
.checkbox-container {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  margin-top: 8px;
}

.checkbox-container input[type="checkbox"] {
  width: 19px;
  height: 19px;
  margin-right: 11px;
  cursor: pointer;
  accent-color: #a855f7;
  border-radius: 4px;
}

.checkbox-container label {
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  user-select: none;
  letter-spacing: 0.2px;
}

/* Login Button */
.login-button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(90deg, #8b5cf6 0%, #d946ef 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(139, 92, 246, 0.5);
  background: linear-gradient(90deg, #9d6ff7 0%, #e456ff 100%);
}

.login-button:active {
  transform: translateY(0);
}

/* Responsive Design - Maintain single page view */
@media only screen and (max-height: 800px) {
  .logo-container {
    height: 85px;
    margin-bottom: 18px;
  }
  
  .tagline {
    font-size: 14px;
    margin-bottom: 20px;
  }
  
  .welcome-heading {
    font-size: 30px;
    margin-bottom: 10px;
  }
  
  .subheading {
    font-size: 14px;
    margin-bottom: 22px;
  }
  
  .form-container {
    padding: 32px 55px;
  }
  
  .input-group {
    margin-bottom: 15px;
  }
  
  .input-group input[type="text"],
  .input-group input[type="password"],
  .input-group input[type="email"] {
    padding: 11px 15px;
  }
  
  .login-button {
    padding: 12px;
  }
}

@media only screen and (max-width: 768px) {
  .logo-container {
    width: 90%;
    max-width: 420px;
    height: auto;
    min-height: 90px;
    padding: 10px;
  }

  .form-container {
    width: 90%;
    max-width: 580px;
    padding: 35px 28px;
  }

  .welcome-heading {
    font-size: 28px;
  }

  .tagline {
    font-size: 13px;
    letter-spacing: 3.5px;
  }

  .subheading {
    font-size: 14px;
  }
}

@media only screen and (max-width: 480px) {
  .login-container {
    padding: 15px;
  }

  .logo-container {
    width: 100%;
    height: auto;
    min-height: 80px;
    margin-bottom: 18px;
  }

  .form-container {
    width: 100%;
    padding: 28px 20px;
  }

  .welcome-heading {
    font-size: 24px;
  }

  .tagline {
    font-size: 12px;
    letter-spacing: 3px;
    margin-bottom: 18px;
  }

  .subheading {
    font-size: 13px;
    margin-bottom: 22px;
  }

  .input-group {
    margin-bottom: 16px;
  }

  .input-group label {
    font-size: 14px;
  }

  .input-group input[type="text"],
  .input-group input[type="password"],
  .input-group input[type="email"] {
    padding: 11px 15px;
    font-size: 14px;
  }

  .login-button {
    padding: 12px;
    font-size: 16px;
  }

  .checkbox-container label {
    font-size: 13px;
  }
}

/* Custom Scrollbar - Hidden since no scroll needed */
::-webkit-scrollbar {
  width: 0;
  height: 0;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: transparent;
}

::-webkit-scrollbar-thumb:hover {
  background: transparent;
}