/* =========================================
   PREMIUM CUSTOM LOGIN DESIGN
   Colors: #00052e (Dark), #ffffff (White), #fbc123 (Yellow)
   ========================================= */

:root {
  --brand-dark: #00052e; /* Main Deep Blue */
  --brand-white: #ffffff; /* White */
  --brand-accent: #fbc123; /* Yellow/Gold */
  --brand-gray-bg: #f4f6f8; /* Light page background */
  --brand-text-gray: #555555;

  --radius-card: 20px;
  --radius-input: 12px;
  --font-family: "Inter", sans-serif;
}

body {
  background-color: var(--brand-gray-bg);
  margin: 0;
  font-family: var(--font-family);
}

/* Page Wrapper */
.ha-login-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Main Card Container */
.ha-login-card {
  background: var(--brand-white);
  width: 100%;

  border-radius: var(--radius-card);

  display: flex;
  overflow: hidden;
}

/* --- LEFT SIDE (Brand Section) --- */
.ha-brand-section {
  flex: 1;
  background-color: var(--brand-dark); /* #00052e */
  position: relative;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--brand-white);

  /* Background Pattern/Image Overlay */
  background-image: linear-gradient(
      135deg,
      rgb(107 107 107 / 95%),
      rgb(251 193 34 / 49%)
    ),
    url(https://images.unsplash.com/photo-1560518883-ce09059eeffa?q=80&w=1000&auto=format&fit=crop);
  background-size: cover;
  background-position: center;
}

.ha-logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
}

.ha-logo-icon {
  background: var(--brand-accent);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-dark);
}

.ha-brand-text h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 700;
}

.ha-brand-text h2 span {
  color: var(--brand-accent); /* Yellow Highlight */
}

.ha-brand-text p {
  font-size: 1rem;
  opacity: 0.85;
  line-height: 1.6;
  max-width: 90%;
}

/* --- RIGHT SIDE (Form Section) --- */
.ha-form-section {
  flex: 1;
  background: var(--brand-white);
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ha-form-header {
  margin-bottom: 35px;
}

.ha-form-header h1 {
  color: var(--brand-dark);
  font-size: 2rem;
  margin: 0 0 10px 0;
  font-weight: 700;
}

.ha-form-header p {
  color: var(--brand-text-gray);
  margin: 0;
}

/* Inputs */
.ha-input-group {
  margin-bottom: 25px;
  position: relative;
}

.ha-input-group label {
  display: block;
  font-size: 0.9rem;
  color: var(--brand-dark);
  font-weight: 600;
  margin-bottom: 8px;
}

.ha-input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius-input);
  font-size: 1rem;
  box-sizing: border-box;
  transition: all 0.3s ease;
  background: #f9f9f9;
  color: var(--brand-dark);
  font-family: var(--font-family);
}

.ha-input:focus {
  outline: none;
  background: var(--brand-white);
  border-color: var(--brand-dark); /* Blue Border on Focus */
  box-shadow: 0 0 0 4px rgba(0, 5, 46, 0.1);
}

/* Password Eye */
.ha-password-toggle {
  position: absolute;
  right: 15px;
  top: 42px; /* Adjusted for label height */
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  transition: color 0.2s;
}

.ha-password-toggle:hover {
  color: var(--brand-dark);
}

/* Checkbox & Links */
.ha-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  font-size: 0.9rem;
}

.ha-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--brand-text-gray);
  user-select: none;
}

.ha-checkbox input {
  accent-color: var(--brand-dark);
  width: 16px;
  height: 16px;
}

.ha-forgot-link {
  color: var(--brand-dark);
  font-weight: 600;
  text-decoration: none;
  position: relative;
}

.ha-forgot-link::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--brand-accent);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.ha-forgot-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Primary Button (The Yellow Button) */
.ha-btn-submit {
  width: 100%;
  background-color: var(--brand-accent); /* #fbc123 */
  color: var(--brand-dark); /* #00052e */
  border: none;
  padding: 18px;
  border-radius: var(--radius-input);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(251, 193, 35, 0.3);
}

.ha-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251, 193, 35, 0.4);
  background-color: #ffca42; /* Slightly lighter yellow on hover */
}

.ha-btn-submit:active {
  transform: translateY(0);
}

/* Footer Link */
.ha-register-area {
  margin-top: 30px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--brand-text-gray);
}

.ha-register-link {
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration: none;
  margin-left: 5px;
}

.ha-register-link:hover {
  text-decoration: underline;
  text-decoration-color: var(--brand-accent);
  text-decoration-thickness: 3px;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .ha-login-card {
    flex-direction: column;
    height: auto;
    min-height: auto;
  }
  .ha-brand-section {
    padding: 40px 30px;
    min-height: 200px;
  }
  .ha-brand-text h2 {
    font-size: 1.8rem;
  }
  .ha-form-section {
    padding: 40px 30px;
  }
}
