/* ============================================================
   Pushpodhara - Modern Login Page Styles
   Inspired by clean, contemporary design
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --brand-50: #f0fdf4;
  --brand-100: #dcfce7;
  --brand-200: #bbf7d0;
  --brand-300: #86efac;
  --brand-400: #4ade80;
  --brand-500: #22c55e;
  --brand-600: #16a34a;
  --brand-700: #15803d;
  --brand-800: #166534;
  --accent-gold: #c8923a;
  --accent-gold-light: #e4a853;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

* { box-sizing: border-box; }

/* ---------- Page Layout ---------- */
body.login-page-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 40%, #f0fdfa 100%);
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Remove old backgrounds */
body.login-page-body::before { display: none; }

/* Remove AdminLTE defaults */
.login-page-body .wrapper,
.login-page-body .content-wrapper,
.login-page-body .main-footer { all: unset; }

/* ---------- Animated Background Blobs ---------- */
.login-bg-blobs {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.login-bg-blobs .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: blobPulse 4s ease-in-out infinite alternate;
}

.login-bg-blobs .blob-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  right: -100px;
  background: rgba(34, 197, 94, 0.15);
}

.login-bg-blobs .blob-2 {
  width: 500px;
  height: 500px;
  bottom: -100px;
  left: -100px;
  background: rgba(20, 184, 166, 0.15);
  animation-delay: 1s;
}

.login-bg-blobs .blob-3 {
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(34, 197, 94, 0.08);
  animation-delay: 2s;
}

@keyframes blobPulse {
  0% { opacity: 0.5; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.1); }
}

/* ---------- Login Split Layout ---------- */
.login-split-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 24px;
  min-height: 100vh;
}

/* ---------- Left Info Panel ---------- */
.login-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
}

.login-brand-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.login-brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  padding: 8px;
  flex-shrink: 0;
}

.login-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-brand-text h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--gray-900);
  margin: 0;
  line-height: 1.2;
}

.login-brand-text p {
  font-size: 13px;
  color: var(--gray-500);
  margin: 4px 0 0;
  font-weight: 500;
}

/* Feature Cards */
.login-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.login-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px;
  border: 1px solid rgba(229, 231, 229, 0.5);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease;
}

.login-feature-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.login-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.login-feature-icon.green {
  background: #dcfce7;
  color: #16a34a;
}

.login-feature-icon.teal {
  background: #ccfbf1;
  color: #0d9488;
}

.login-feature-icon.blue {
  background: #dbeafe;
  color: #2563eb;
}

.login-feature-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 3px;
}

.login-feature-card p {
  font-size: 12px;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.5;
}

/* Stats Row */
.login-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.login-stat-item {
  text-align: center;
}

.login-stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--brand-600);
}

.login-stat-label {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
}

/* ---------- Right Form Panel ---------- */
.login-form-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 
    0 25px 60px rgba(22, 163, 74, 0.08),
    0 0 0 1px rgba(229, 231, 229, 0.5);
  animation: cardSlideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes cardSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Card Header - NEW style (no dark header) */
.login-card-header {
  background: transparent;
  padding: 32px 32px 0;
  text-align: left;
  position: relative;
}

.login-card-header::after,
.login-card-header::before { display: none; }

.login-card-logo {
  display: none;
}

.login-card-header h2 {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
  margin: 0 0 4px;
}

.login-card-header .login-subtitle {
  font-size: 13px;
  color: var(--gray-500);
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

/* Gold header variant */
.login-card-header.gold-header {
  background: transparent;
}

/* Card Body */
.login-card-body {
  padding: 24px 32px 28px;
}

/* ---------- Form Styles ---------- */
.login-card-body .form-group {
  margin-bottom: 16px;
  position: relative;
}

.login-card-body .form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.login-card-body .form-control {
  height: 46px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  padding: 10px 42px 10px 42px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: var(--gray-900);
  background: var(--gray-50);
  transition: all 0.2s ease;
  box-shadow: none;
  width: 100%;
}

.login-card-body .form-control:focus {
  border-color: var(--brand-500);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
  outline: none;
}

.login-card-body .form-control::placeholder {
  color: var(--gray-400);
  font-weight: 400;
}

.login-card-body select.form-control {
  padding-left: 42px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  cursor: pointer;
}

/* Input field wrapper - positions icon relative to input only */
.login-card-body .input-field,
.login-card-body .password-field {
  position: relative;
}

/* Input Icons */
.login-card-body .input-field .input-icon,
.login-card-body .password-field .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 15px;
  z-index: 2;
  pointer-events: none;
  transition: color 0.2s ease;
}

/* Password field wrapper - positions icon & toggle relative to input only */

.login-card-body .password-field .form-control {
  padding-right: 44px;
}

/* Password Toggle */
.login-card-body .password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-600);
  font-size: 16px;
  cursor: pointer;
  z-index: 10;
  background: none;
  border: none;
  padding: 4px;
  line-height: 1;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  outline: none;
}

.login-card-body .password-toggle:hover {
  color: var(--brand-600);
}

.login-card-body .password-toggle:focus {
  outline: none;
}

.login-card-body .form-group:focus-within .input-icon {
  color: var(--brand-600);
}

/* No focus underline animation - cleaner look */
.login-card-body .form-group::after { display: none; }

.login-card-body .has-feedback .form-control-feedback { display: none; }
.login-card-body .form-group.has-feedback { position: relative; }

/* Error Message */
.login-card-body #errormsg {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
  color: #dc2626;
  font-size: 13px;
  text-align: center;
  font-weight: 500;
  animation: shake 0.4s ease;
}

.login-card-body .alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
  color: #dc2626;
  font-size: 13px;
  text-align: center;
  font-weight: 500;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ---------- Sign In Button ---------- */
.btn-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 24px;
  border: none;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
  background: linear-gradient(135deg, #16a34a, #0d9488);
  margin-top: 6px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
}

.btn-login:hover {
  background: linear-gradient(135deg, #15803d, #0f766e);
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.4);
  transform: translateY(-1px);
  color: #fff;
}

.btn-login:active { transform: translateY(0); }
.btn-login i { font-size: 14px; }

/* Gold variant */
.btn-login-gold {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  box-shadow: 0 4px 14px rgba(200, 146, 58, 0.3);
}

.btn-login-gold:hover {
  background: linear-gradient(135deg, #b07d2e, var(--accent-gold));
  box-shadow: 0 8px 20px rgba(200, 146, 58, 0.4);
  color: #fff;
}

/* ---------- Links ---------- */
.login-links {
  text-align: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}

.login-links a {
  color: var(--gray-500);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.login-links a:hover {
  color: var(--brand-600);
  text-decoration: none;
}

.login-links .forgot-link {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--gray-400);
  font-size: 12px;
  font-weight: 500;
}

.login-links .forgot-link:hover { color: var(--brand-600); }

.login-links .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--gray-700);
  font-size: 13px;
}

.login-links .back-link:hover { color: var(--brand-600); }
.login-links .back-link i { margin-right: 0; font-size: 12px; }

/* Security footer */
.login-security-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-200);
  font-size: 10px;
  color: var(--gray-400);
}

.login-security-footer .security-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.login-security-footer .security-item i {
  color: var(--brand-600);
  font-size: 11px;
}

/* ReCAPTCHA */
.login-card-body .g-recaptcha {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

/* Checkbox */
.login-card-body .checkbox { margin-top: 0; margin-bottom: 8px; }
.login-card-body .checkbox label { font-size: 13px; color: var(--gray-500); font-weight: 400; }

/* Hidden elements */
.login-page-body .page-header { display: none; }
.login-page-body .login-box,
.login-page-body .login-box-body { all: unset; }
.login-page-body .login-logo { all: unset; }
.login-page-body .headertext { display: none; }
.login-page-body .form-signin { max-width: 100%; margin: 0; padding: 0; }
.login-page-body .form-signin-heading { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .login-split-container {
    grid-template-columns: 1fr;
    max-width: 480px;
    min-height: auto;
    padding: 20px;
  }

  .login-info-panel {
    display: none;
  }

  .login-form-panel {
    width: 100%;
  }

  /* Show mobile brand */
  .login-mobile-brand {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .login-card {
    border-radius: 16px;
  }

  .login-card-body {
    padding: 20px 22px 24px;
  }

  .login-card-header {
    padding: 24px 22px 0;
  }

  .login-card-header h2 {
    font-size: 20px;
  }
}

/* Mobile brand (hidden on desktop) */
.login-mobile-brand {
  display: none;
}

.login-mobile-brand .mobile-logo-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  margin-bottom: 10px;
}

.login-mobile-brand .mobile-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-mobile-brand h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
}

.login-mobile-brand p {
  font-size: 12px;
  color: var(--gray-500);
  margin: 2px 0 0;
}
