@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@600;700;800;900&display=swap');

:root {
  --hp-primary: #0b4566;
  --hp-primary-rgb: 11, 69, 102;
  --hp-primary-light: #1c6b8c;
  --hp-primary-hover: #072e45;
  
  --hp-accent: #2fbfa5;
  --hp-accent-rgb: 47, 191, 165;
  --hp-accent-light: #e6f8f5;
  --hp-accent-hover: #26a38c;
  
  --hp-gradient-primary: linear-gradient(135deg, #0b4566 0%, #1c8fa6 50%, #2fbfa5 100%);
  --hp-gradient-accent: linear-gradient(135deg, #2fbfa5 0%, #6fd0c3 100%);
}

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

body {
  font-family: 'Inter', sans-serif;
  color: #1a1c2e;
  background: #ffffff; /* Clean white background */
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
}

.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 2rem;
}

.login-form-panel {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px rgba(11, 69, 102, 0.05), 0 1px 3px rgba(11, 69, 102, 0.02);
  border: 1px solid #e4eef2;
  transition: all 0.3s ease;
}

.login-form-panel:hover {
  box-shadow: 0 20px 40px rgba(11, 69, 102, 0.08);
  border-color: rgba(47, 191, 165, 0.3);
}

.login-logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.login-logo-img {
  max-width: 240px;
  height: auto;
  display: block;
}

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

.login-title {
  font-family: 'Manrope', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #0b4566;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.login-subtitle {
  color: #64748b;
  font-size: 0.95rem;
}

/* --- Form inputs and buttons --- */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1c2e;
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  border: 1.5px solid #cbd5e1;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #1a1c2e;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--hp-accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(var(--hp-accent-rgb), 0.15);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #64748b;
  cursor: pointer;
  user-select: none;
}

.remember-me input {
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
  border: 1.5px solid #cbd5e1;
  accent-color: var(--hp-accent);
}

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

.forgot-password:hover {
  color: var(--hp-primary-light);
}

.btn-login {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: var(--hp-primary);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(var(--hp-primary-rgb), 0.2);
}

.btn-login:hover {
  background: var(--hp-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(var(--hp-primary-rgb), 0.3);
}

/* --- Alerts and errors --- */
.alert {
  padding: 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.alert-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.alert ul {
  list-style: none;
}

.back-to-home {
  margin-top: 2rem;
  text-align: center;
}

.back-to-home a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}

.back-to-home a:hover {
  color: #1a1c2e;
}
