/* ===========================
   Root Variables
=========================== */
:root {
  --green-primary: #1f9d63;
  --green-dark: #16794c;
  --green-light: #e6f7ef;
  --navy: #1c2e4a;
  --red-accent: #e74c3c;
  --text-muted: #6b7280;
  --border-color: #d9dee3;
  --bg-cream: #f3efe3;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  color: var(--navy);
}

.login-wrapper {
  min-height: 100vh;
  width: 100%;
}

/* ===========================
   LEFT PANEL
=========================== */
.left-panel {
  background: linear-gradient(160deg, #e9f6ee 0%, #f3efe3 55%, #f6efe0 100%);
  align-items: center;
  justify-content: center;
  padding: 60px;
}

.left-panel-content {
  max-width: 480px;
}

.device-img-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 260px;
}

.device-img {
  max-width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
}

.left-heading {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.left-subtext {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 auto;
}

/* ===========================
   RIGHT PANEL
=========================== */
.right-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 40px 20px;
}

.right-panel-content {
  width: 100%;
  /*max-width: 420px;*/
  margin: 0 auto;
}

/* Brand Logo */
.brand-logo {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  position: relative;
  display: inline-block;
}

.brand-logo::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  width: 70px;
  height: 3px;
  background: var(--red-accent);
}

.logo-in {
  color: var(--green-primary);
}

.logo-remit {
  color: var(--navy);
}

/* Partner badge */
.badge-partner {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
}

/* Welcome heading */
.welcome-heading {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.wave {
  display: inline-block;
  animation: waveAnim 1.8s ease-in-out infinite;
  transform-origin: 70% 70%;
}

@keyframes waveAnim {
  0%, 60%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
}

.welcome-subtext {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Form input */
.custom-input {
  height: 50px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.95rem;
  padding: 0 16px;
}

.custom-input:focus {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(31, 157, 99, 0.15);
}

.custom-input.is-invalid {
  border-color: var(--red-accent);
}

/* Create account text */
.create-account-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Forgot password link */
.forgot-link {
  font-size: 0.85rem;
  color: var(--green-primary);
  text-decoration: none;
  font-weight: 500;
}

.forgot-link:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

/* Remember me */
.form-check-input {
  width: 18px;
  height: 18px;
  margin-top: 0;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

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

.remember-label {
  font-size: 0.9rem;
  color: var(--navy);
  margin-left: 6px;
  vertical-align: middle;
}

.form-check {
  display: flex;
  align-items: center;
}

/* Sign In Button */
.btn-signin {
  height: 50px;
  background-color: var(--green-primary);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-signin:hover {
  background-color: var(--green-dark);
  color: #fff;
  transform: translateY(-1px);
}

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

.btn-signin:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

/* Terms text */
.terms-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.link-accent {
  color: var(--green-primary);
  text-decoration: underline;
}

.link-accent:hover {
  color: var(--green-dark);
}

/* Secure footer */
.secure-footer {
  padding-top: 10px;
}
 
.lock-icon {
  font-size: 1.6rem;
  line-height: 1;
}
 
.secure-text {
  line-height: 1.3;
}
 
.secure-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}
 
.secure-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}
 

/* ===========================
   Toast (custom, no Bootstrap dependency needed)
=========================== */
.custom-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  z-index: 9999;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.custom-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.custom-toast.toast-success {
  background: var(--green-dark);
}

.custom-toast.toast-error {
  background: var(--red-accent);
}

/* ===========================
   RESPONSIVE BREAKPOINTS
=========================== */

/* Tablets */
@media (max-width: 991.98px) {
  .right-panel {
    padding: 50px 24px;
    min-height: 100vh;
  }
}

/* Mobile */
@media (max-width: 575.98px) {
  .right-panel {
    padding: 36px 18px;
  }

  .right-panel-content {
    max-width: 100%;
  }

  .brand-logo {
    font-size: 1.4rem;
  }

  .welcome-heading {
    font-size: 1.5rem;
  }

  .badge-partner {
    font-size: 0.8rem;
  }

  .custom-input,
  .btn-signin {
    height: 48px;
  }
}

/* Small phones */
@media (max-width: 380px) {
  .welcome-heading {
    font-size: 1.3rem;
  }

  .welcome-subtext,
  .terms-text {
    font-size: 0.82rem;
  }
}