@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&display=swap');

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: "Poppins", Arial, sans-serif;
  background: url("../../uploads/backgroundindex.png") center/cover no-repeat fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #003366;
}

/* Theme Variables */
:root {
  --accent: #009e5a;
  --btn-primary: #009e5a;
  --btn-primary-hover: #007a46;
  --glass-light: rgba(255,255,255,0.78);
  --glass-dark: rgba(10,14,20,0.6);
  --text: #003366;
  --muted: rgba(0,0,0,0.55);
  --shadow: 0 10px 30px rgba(12,30,60,0.12);
  --radius: 14px;
}

/* Dark Mode */
body.dark {
  --accent: #22cc88;
  --btn-primary: #11834c;
  --btn-primary-hover: #0b633a;
  --glass-light: rgba(255,255,255,0.06);
  --glass-dark: rgba(6,12,24,0.75);
  --text: #e6eef9;
  --muted: rgba(255,255,255,0.75);
  --shadow: 0 10px 30px rgba(0,0,0,0.6);
}

/* Layout */
.split-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.left-panel {
  width: 46%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
}

.form-card {
  width: 100%;
  max-width: 420px;
  padding: 36px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--glass-light), rgba(255,255,255,0.6));
  box-shadow: var(--shadow);
  text-align: center;
  backdrop-filter: blur(8px);
}

body.dark .form-card {
  background: linear-gradient(180deg, var(--glass-dark), rgba(0,0,0,0.45));
}

/* Titles */
h2 {
  margin: 6px 0 4px;
  color: var(--text);
  font-size: 1.35rem;
  font-family: 'Roboto', sans-serif;
}

.sub {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Labels and Inputs */
label {
  display: block;
  text-align: left;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 0.95rem;
}

input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.08);
  margin-bottom: 12px;
  font-size: 0.98rem;
  background: rgba(255,255,255,0.9);
  color: #111;
}

body.dark input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text);
}

/* Password wrapper (fixed) */
.password-wrapper {
  position: relative;
}
.password-wrapper input {
  padding-right: 60px;
}
.show-pass {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--accent);
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
  min-width: 45px;
  text-align: right;
}
.show-pass:hover { opacity: 0.8; }

/* Checkbox + Forgot password row */
.row.small {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: var(--muted);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
  margin: 0;
  transform: translateY(1px);
}

.checkbox span {
  line-height: 1;
  user-select: none;
}

.forgot {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.forgot:hover { text-decoration: underline; }

/* Button */
.btn.primary {
  display: inline-block;
  background: var(--btn-primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  width: 100%;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  margin-top: 6px;
}
.btn.primary:hover {
  transform: translateY(-3px);
  background: var(--btn-primary-hover);
}

/* Muted text */
.muted {
  color: var(--muted);
  margin-top: 12px;
  font-size: 0.9rem;
}
.muted a {
  color: var(--accent);
  text-decoration: none;
}
.muted a:hover { text-decoration: underline; }

/* Right panel */
.right-panel {
  width: 54%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.right-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,153,85,0.9), rgba(0,119,66,0.9));
  z-index: 0;
}

.right-content {
  position: relative;
  z-index: 1;
  max-width: 520px;
  color: #fff;
}

.big {
  font-family: 'Playfair Display', serif;
  display: block;
  font-size: 4rem;
  font-weight: 800;
  margin-top: 6px;
}

.lead {
  margin-bottom: 18px;
  opacity: 0.95;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
  text-align: left;
}

.info-grid h3 {
  margin-bottom: 6px;
  font-weight: 100;
  font-style: italic;
  font-size: 1rem;
}
.info-grid p {
  font-size: 0.95rem;
  line-height: 1.35;
}

/* Responsive */
@media (max-width: 900px) {
  .split-container {
    flex-direction: column;
  }
  .left-panel, .right-panel {
    width: 100%;
    padding: 28px;
  }
  .right-panel {
    order: 2;
    padding-top: 20px;
    padding-bottom: 50px;
  }
  .form-card {
    padding: 24px;
    margin-top: 14px;
  }
  .big {
    font-size: 2rem;
  }
}
/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(6px);
}
.modal-content {
  background: linear-gradient(145deg, rgba(255,255,255,0.93), rgba(240,240,240,0.88));
  color: #002b55;
  padding: 32px 42px;
  border-radius: 18px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
  text-align: center;
  width: 90%;
  max-width: 400px;
  animation: fadeIn 0.3s ease-in-out;
  position: relative;
  font-family: 'Roboto', sans-serif;
}
.modal-content h2 {
  margin-bottom: 10px;
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 700;
}
.modal-content p {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 24px;
}
.modal-content button {
  background: var(--btn-primary);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
}
.close-btn {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 1.5rem;
  color: var(--muted);
  cursor: pointer;
  font-weight: bold;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
