/* Login - Desktop-first, modern split layout */

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  font-family: 'Plus Jakarta Sans', var(--font-family);
}

.login-brand {
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem;
  position: relative;
  overflow: hidden;
}

.login-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(5, 150, 105, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 150, 105, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.login-brand-content {
  position: relative;
  z-index: 1;
}

.login-brand-tagline {
  font-size: 1.5rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.login-brand-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.login-brand-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.login-brand-features li i {
  color: #10b981;
  font-size: 0.875rem;
  width: 1.25rem;
}

.login-form-panel {
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.login-form-wrapper {
  width: 100%;
  max-width: 400px;
}

.login-form-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.login-form-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-form-logo {
  height: 72px;
  max-width: 280px;
  width: auto;
  object-fit: contain;
  object-position: center;
}

.login-role-selector {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 4px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.login-role-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.login-role-btn:hover {
  color: var(--gray-800);
  background: var(--gray-50);
}

.login-role-btn.active {
  background: var(--gray-900);
  color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.login-form .form-group {
  margin-bottom: 1.25rem;
}

.login-form .form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.login-form .form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 0.95rem;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-form .form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.login-form .form-input::placeholder {
  color: var(--gray-400);
}

.login-form-hint {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 0.5rem;
}

.login-submit {
  width: 100%;
  padding: 0.875rem 1.5rem;
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: var(--gray-900);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.login-submit:hover {
  background: #1e293b;
}

.login-footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
  text-align: center;
}

.login-footer p {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Responsive: stack on smaller screens */
@media (max-width: 1024px) {
  .login-page {
    grid-template-columns: 1fr;
  }

  .login-brand {
    padding: 3rem 2rem;
    min-height: 280px;
  }

  .login-brand-tagline {
    font-size: 1.25rem;
  }

  .login-brand-features {
    display: none;
  }
}

@media (max-width: 640px) {
  .login-form-panel {
    padding: 2rem 1.5rem;
  }

  .login-form-logo {
    height: 56px;
    max-width: 220px;
  }

  .login-role-selector {
    flex-direction: column;
  }
}
