/* ═══════════════════════════════════════════════════════════
   iTamsLink — Login CSS
   Full-page split layout, FEU green theme
═══════════════════════════════════════════════════════════ */

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

:root {
  --green:        #19804C;
  --green-dark:   #0e5c34;
  --gold:         #f5a623;
  --text:         #1a2e3b;
  --muted:        #6b7280;
  --subtle:       #9ca3af;
  --border:       #e0e7ef;
  --white:        #ffffff;
}

html, body {
  height: 100%;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
  display: flex;
  min-height: 100vh;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════
   LEFT PANEL
═══════════════════════════════════════════════════════════ */
.left {
  flex: 0 0 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 52px;
  overflow: hidden;
  background: linear-gradient(155deg,#011a0d 0%,#042e18 20%,#0a4a28 45%,#063a20 70%,#011a0d 100%);
}

/* Subtle orb to match hero feel */
.left::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(25,128,76,.28) 0%, transparent 65%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.back-link {
  position: absolute;
  top: 28px;
  left: 32px;
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .15s;
  z-index: 2;
}
.back-link:hover { color: #fff; }

.left-brand {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.left-logo-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.3));
}

.left-label {
  font-size: .72rem;
  font-weight: 700;
  color: rgba(255,255,255,.5);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.left-app-name {
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  line-height: 1.05;
  margin-top: -4px;
}
.left-app-name span { color: var(--gold); }

.left-subtitle {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  font-weight: 600;
  line-height: 1.55;
  text-align: center;
}

.left-divider {
  width: 40px;
  height: 2px;
  background: rgba(255,255,255,.25);
  border-radius: 2px;
}

.left-tagline {
  font-size: .84rem;
  color: rgba(255,255,255,.75);
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
}
.left-tagline .sub {
  font-weight: 500;
  opacity: .80;
}

/* ═══════════════════════════════════════════════════════════
   RIGHT PANEL
═══════════════════════════════════════════════════════════ */
.right {
  flex: 0 0 50%;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 40px 64px;
  overflow-y: auto;
}

.right-top-logo {
  display: flex;
  justify-content: center;
  width: 100%;
}
.right-top-logo img {
  height: 52px;
  object-fit: contain;
}
.right-top-logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green);
}

.right-form-area {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1;
  justify-content: center;
}

.right-header {
  text-align: center;
  margin-bottom: 28px;
}
.right-header h1 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.03em;
}

/* ── Fields ── */
.form-group {
  margin-bottom: 16px;
  position: relative;
}

.field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #b0bec8;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.form-input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .88rem;
  font-family: inherit;
  color: var(--text);
  background: #fafbfc;
  outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.form-input:focus {
  border-color: var(--green);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(25,128,76,.10);
}
.form-input::placeholder { color: #b8c5d0; }

/* Subtle dot pattern overlay on left panel */
.left::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

.pw-wrap { position: relative; }
.pw-wrap .form-input { padding-left: 40px; padding-right: 46px; }

.pw-toggle {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #b0bec8;
  display: flex;
  align-items: center;
  padding: 0;
  transition: color .15s;
}
.pw-toggle:hover { color: var(--green); }

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  margin-top: 4px;
}

.checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .78rem;
  color: var(--muted);
  cursor: pointer;
  font-weight: 500;
}
.checkbox-wrap input {
  accent-color: var(--green);
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.forgot {
  font-size: .78rem;
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
  transition: color .15s;
}
.forgot:hover { color: var(--green-dark); text-decoration: underline; }

/* ── reCAPTCHA wrapper ── */
.recaptcha-wrap {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 16px;
  background: #f8fdf9;
  border: 1.5px solid #d4eddf;
  border-radius: 10px;
  animation: slideDown .25s ease;
}
.recaptcha-wrap.visible {
  display: flex;
}
.recaptcha-label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: .02em;
  text-align: center;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Login button */
.btn-login {
  width: 100%;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 13px;
  font-size: .95rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: .02em;
  box-shadow: 0 4px 16px rgba(25,128,76,.22);
  transition: background .18s, transform .15s, box-shadow .15s;
  margin-bottom: 16px;
}
.btn-login:hover:not(:disabled) {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(25,128,76,.30);
}
.btn-login:active:not(:disabled) { transform: translateY(0); }
.btn-login:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.register-line {
  text-align: center;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.register-line a {
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}
.register-line a:hover { text-decoration: underline; }

/* Footer */
.right-footer {
  width: 100%;
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 6px;
}
.footer-links a {
  font-size: .70rem;
  color: var(--subtle);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .15s;
}
.footer-links a:hover { color: var(--green); }
.footer-copy {
  font-size: .68rem;
  color: #c0c8d0;
}

/* ═══════════════════════════════════════════════════════════
   TOAST
═══════════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 28px;
  border-radius: 10px;
  z-index: 9999;
  font-size: .875rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  max-width: 90vw;
  text-align: center;
}
.toast-error   { background: #FEF2F2; color: #991B1B; border: 1.5px solid #FECACA; }
.toast-success { background: #D1FAE5; color: #065F46; border: 1.5px solid #6EE7B7; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  body { flex-direction: column; overflow: auto; }
  .left {
    flex: 0 0 auto;
    min-height: 300px;
    padding: 40px 32px;
  }
  .right {
    flex: 1 1 auto;
    padding: 36px 32px;
  }
}