@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;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: #3a276e;
}

/* THEME VARIABLES */
:root {
  --accent: #8b4de8;
  --btn-primary: #8b4de8;
  --btn-primary-hover: #6f3bbf;
  --glass-light: rgba(255,255,255,0.78);
  --glass-dark: rgba(10,14,20,0.6);
  --text: #3a276e;
  --muted: rgba(0,0,0,0.55);
  --shadow: 0 10px 30px rgba(12,30,60,0.12);
  --radius: 14px;
}

body.dark {
  --accent: #b98aff;
  --btn-primary: #6f3bbf;
  --btn-primary-hover: #5a3099;
  --glass-light: rgba(255,255,255,0.06);
  --glass-dark: rgba(6,12,24,0.75);
  --text: #e6e6ff;
  --muted: rgba(255,255,255,0.75);
  --shadow: 0 10px 30px rgba(0,0,0,0.6);
}

/* LAYOUT */
.split-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

/* LEFT PANEL */
.left-panel {
  width: 46%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
}

.form-card {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, var(--glass-light), rgba(255,255,255,0.6));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  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;
}

/* INPUTS + LABELS */
label {
  display: block;
  text-align: left;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}

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 */
.password-wrapper {
  position: relative;
}
.password-wrapper input {
  padding-right: 60px;
}
.show-pass {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 0.9rem;
  color: var(--accent);
  cursor: pointer;
  transition: opacity 0.2s ease;
  min-width: 45px;
  text-align: right;
}
.show-pass:hover { opacity: 0.8; }

/* ROW SMALL */
.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 {
  background: var(--btn-primary);
  color: #fff;
  border: none;
  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 LINK */
.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(155,81,224,0.9), rgba(98,45,181,0.9));
  z-index: 0;
}
.right-content {
  position: relative;
  z-index: 1;
  max-width: 520px;
  color: #fff;
}
.right-content h1 {
  font-size: 1.8rem;
  font-family: 'Roboto', sans-serif;
  margin-bottom: 8px;
  font-weight: 100;
}
.big {
  font-family: 'Playfair Display', serif;
  display: block;
  font-size: 4rem;
  font-weight: 800;
  margin-top: 6px;
}
.lead {
  margin-bottom: 18px;
  opacity: 0.95;
  font-size: 1rem;
}
.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;
  opacity: 0.95;
  line-height: 1.35;
}

body.dark .right-panel::before {
  background: linear-gradient(135deg, rgba(40,0,70,0.85), rgba(25,0,50,0.85));
}

/* 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; }
}
