:root {
  --primary-color: #2563eb;
  --primary-dark: #1e40af;
  --secondary-color: #64748b;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 650px;
  width: 100%;
  position: relative;
}

.login-form-section {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

.brand-logo i {
  font-size: 3rem;
  color: var(--primary-color);
}

.brand-logo h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
}

.welcome-text {
  margin-bottom: 40px;
}

.welcome-text h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 10px;
}

.welcome-text p {
  color: var(--secondary-color);
  font-size: 1.1rem;
}

.form-floating {
  margin-bottom: 20px;
}

.form-floating > .form-control {
  height: 65px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 16px 10px 16px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-floating > .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-floating > label {
  color: var(--secondary-color);
  padding: 20px 16px 10px 16px;
}

.password-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--secondary-color);
  cursor: pointer;
  font-size: 1.1rem;
  z-index: 10;
}

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

.btn-login {
  background: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 100%);
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

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

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.alert {
  border: none;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 25px;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

@media (max-width: 768px) {
  .login-container {
    margin: 10px;
    max-width: 100%;
  }

  .login-form-section {
    padding: 40px 30px;
  }

  .brand-logo h1 {
    font-size: 2rem;
  }

  .welcome-text h2 {
    font-size: 1.5rem;
  }
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}
