@import url(/css/style.css);

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

body {
  font-family: "Anek Gujarati", sans-serif;
  font-optical-sizing: auto;
  background: var(--body-bg-color);
}

.login-container {
  display: flex;
  min-height: 100vh;
}

/* Left Side - Login Form */
.login-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-color: #ffffff;
}

.login-form {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
}

.login-form h1 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--pri-color);
  margin-bottom: 0.5rem;
  text-align: left;
}
.form-container {
  width: 100%;
}   
.subtitle {
  color: var(--grey-txt-color);
  font-size: 0.95rem;
  margin-bottom: 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: var(--grey-txt-color);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.form-group input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--sec-color);
}

/* Password Toggle Button */
.password-input-wrapper {
  position: relative;
}

.password-input-wrapper input {
  padding-right: 2.8rem;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.toggle-password:hover {
  color: var(--pri-color);
}

.toggle-password svg {
  pointer-events: none;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--pri-color);
}

.form-check label {
  color: var(--grey-txt-color);
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-login {
  width: 100%;
  padding: 1rem;
  background-color: var(--pri-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: 0.5s ease;
  box-shadow: var(--shadow-main);
}

.btn-login:hover {
  opacity: 0.9;
}

.signup-link {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--grey-txt-color);
  font-size: 0.9rem;
}

.signup-link a {
  color: var(--pri-color);
  text-decoration: none;
  font-weight: 600;
}

.signup-link a:hover {
  text-decoration: underline;
}

/* Success Message Container - Centered */
.signup-success-container {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 400px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.signup-success-container.show {
  opacity: 1;
  transform: translateY(0);
}

.success-checkmark {
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
  animation: checkmarkPop 0.6s ease-out;
}

.success-checkmark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.success-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--pri-color);
  margin-bottom: 12px;
  line-height: 1.3;
}

.success-subtitle {
  font-size: 1rem;
  color: var(--grey-txt-color);
  margin: 0;
  max-width: 400px;
}

@keyframes checkmarkPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Right Side - Hero Section */
.login-right {
  flex: 1;
  background: var(--linear-grd);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 3rem;
  overflow: hidden;
}

.hero-text h2 {
  font-size: 3.5rem;
  font-weight: 600;
  color: white;
  line-height: 1.2;
  text-align: center;
}

.hero-text .highlight {
  color: var(--sec-color);
}

.cube-graphic {
  position: absolute;
  bottom: 10%;
  right: 10%;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  transform: rotate(20deg);
  opacity: 0.8;
}

@media (max-width: 1300px) {
    .login-right {
    min-height: 40vh;
    display: none;
  }
}

/* Responsive Design */
@media (max-width: 968px) {
  .login-container {
    flex-direction: column;
  }
  
  .login-right {
    min-height: 40vh;
    display: none;
  }
  
  .hero-text h2 {
    font-size: 2.5rem;
  }
  
  .cube-graphic {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .login-form h1 {
    font-size: 1.5rem;
  }
  
  .hero-text h2 {
    font-size: 1.8rem;
  }
}