/* Import Variables and Base Styles */
@import '/styles/_variables.css';

/* Login Page Specific Styles */
:root {
  --login-card-bg: linear-gradient(135deg, #4e82be 0%, #4523c2 100%);
  --login-border: rgba(0, 0, 0, 0.1);
  --card-bg: linear-gradient(100deg, #2563eb 0%, #3068ad 100%);
  --primary: #2563eb;
  --primary-dark: #1e3a8a;
  --text: #fff;
  --white: #fff;
  --shadow: 0 8px 32px rgba(37, 99, 235, 0.13), 0 2px 8px rgba(96, 165, 250, 0.09);
}


body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #c09539;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.container {
  width: 100%;
  max-width: 1000px;
  margin: 2rem auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: #c09539;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 80vh;
}

.login-container {
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  padding: var(--spacing-xl);
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
}

/* Welcome Banner */
.welcome-banner {
  background: var(--card-bg);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow);
}

.welcome-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 50, 0.23);
  border-radius: 1.5rem;
  z-index: 1;
  pointer-events: none;
}

.welcome-banner > * {
  position: relative;
  z-index: 2;
}


.welcome-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgwLDAsMCwwLjAzKSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3QgZmlsbD0idXJsKCNwYXR0ZXJuKSIgaGVpZ2h0PSIxMDAlIiB3aWR0aD0iMTAwJSIvPjwvc3ZnPg==');
  opacity: 0.4;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 2rem;
  z-index: 1;
}

.logo i {
  margin-right: 0.75rem;
  color: var(--primary);
}

.welcome-banner h1 {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.8rem;
  letter-spacing: -1px;
  background: none;
  text-shadow: 0 2px 10px rgba(0,0,0,0.22), 0 1px 2px rgba(0,0,0,0.15);
}


.welcome-banner p {
  font-size: 1.18rem;
  color: #fff;
  margin-bottom: 1.3rem;
  line-height: 1.55;
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(0,0,0,0.18), 0 1px 2px rgba(0,0,0,0.13);
}


/* Login Form */
.login-form {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.login-form h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.form-group {
  margin-bottom: var(--spacing-lg);
  position: relative;
  z-index: 1;
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: var(--font-weight-medium);
  color: var(--text-dark);
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--light);
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  padding-right: 2.5rem;
}

.input-group:hover {
  border-color: var(--primary-light);
}

.input-group i:first-child {
  position: absolute;
  left: 1rem;
  color: var(--text-light);
  transition: all 0.3s ease;
  z-index: 1;
}

.input-group input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  font-size: 0.9375rem;
  border: none;
  background: transparent;
  color: var(--primary-dark); /* Changed from var(--text) to dark color */
  caret-color: var(--primary-dark); /* Ensure caret is visible */
  transition: all 0.3s ease;
  height: 3rem;
  border-radius: var(--border-radius);
}

input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.input-group:focus-within i {
  color: var(--primary);
}

/* Toggle Password Button */
.toggle-password {
  position: absolute;
  right: 0.5rem;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  width: 2.5rem;
  height: 100%;
}

.toggle-password:hover {
  color: var(--primary);
  background: rgba(0, 0, 0, 0.03);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.toggle-password i {
  font-size: 1.1rem;
}

/* Forgot Password Link */
.forgot-password {
  text-align: right;
  margin-top: 0.5rem;
}

.forgot-password a {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.forgot-password a:hover {
  text-decoration: underline;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  padding: 0.9rem 0;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 2rem;
  border: none;
  background: linear-gradient(90deg, #2563eb 0%, #3064a3 100%);
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 6px -1px rgba(77, 116, 225, 0.97), 0 2px 4px -1px rgb(66, 128, 230);
}

.submit-btn:hover {
  background: linear-gradient(90deg, #3372bf 0%, #2563eb 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(8, 34, 199, 0.998), 0 4px 6px -2px rgba(11, 62, 245, 0.97);
}

.submit-btn:active {
  box-shadow: 0 2px 4px -1px rgb(27, 33, 97);
}

.submit-btn i {
  transition: transform 0.3s ease;
}

.submit-btn:hover i {
  transform: translateX(3px);
}

/* Sign Up Link */
.signup-link {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: var(--text-light);
  position: relative;
  z-index: 1;
}

.signup-link a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

.signup-link a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
}

.signup-link a:hover::after {
  width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
    margin: 1rem;
    min-height: auto;
  }
  
  .welcome-banner {
    padding: 2rem 1.5rem;
    text-align: center;
  }
  
  .welcome-banner h1 {
    font-size: 1.75rem;
  }
  
  .login-form {
    padding: 2rem 1.5rem;
  }
  
  .logo {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    margin: 0.5rem;
    border-radius: 0.5rem;
  }
  
  .welcome-banner {
    padding: 1.5rem 1rem;
  }
  
  .welcome-banner h1 {
    font-size: 1.5rem;
  }
  
  .login-form {
    padding: 1.5rem 1rem;
  }
  
  .login-form h2 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
  }
}
