:root {
  --green-primary: #6cc24a;
  --green-dark: #155f29;
  --green-hover: #17732f;
  --green-light: #e8f5ec;
  --green-link: #1a7a34;

  --text-dark: #1a1a2e;
  --text-medium: #4a4a6a;
  --text-light: #8888aa;

  --border-color: #d5dde8;
  --input-bg: #f4f7fb;
  --input-focus-bg: #ffffff;

  --white: #ffffff;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.08);

  --radius-panel: 18px;
  --radius-input: 10px;
  --radius-btn: 10px;

  --font-main:
    "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --transition: 0.25s ease;
}

html,
body {
  height: 100%;
  font-family: var(--font-main);
  background: #f0f4f8;
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
}

/*  PAGE WRAPPER  (two equal panels)  */
.page-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  padding: 24px;
  gap: 24px;
}

/* PANEL BASE  — both panels share the same size */
.panel {
  flex: 1 1 0;
  /* max-width: 560px; */
  min-width: 0;
  min-height: 95vh;
  border-radius: var(--radius-panel);
  overflow: hidden;
  position: relative;
}

/* 
   LEFT PANEL — SLIDESHOW
    */
.panel-left {
  box-shadow: var(--shadow-card);
}

.slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.72) 100%
  );
  z-index: 1;
}

.slide-content {
  position: absolute;
  bottom: 56px;
  left: 28px;
  right: 28px;
  z-index: 2;
}

.slide-quote {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.6;
  margin-bottom: 10px;
  font-style: italic;
  letter-spacing: 0.01em;
}

.slide-author {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.slide-dots {
  position: absolute;
  bottom: 22px;
  left: 28px;
  z-index: 2;
  display: flex;
  gap: 8px;
  align-items: center;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition:
    background var(--transition),
    transform var(--transition);
  padding: 0;
}

.dot.active {
  background: var(--white);
  transform: scale(1.25);
}

.dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.panel-left {
  min-height: 95vh;
  height: 95vh;
}

.slideshow {
  position: relative;
  width: 100%;
  height: 100%; 
  min-height: 100%; 
}

/* 
   RIGHT PANEL — LOGIN FORM
    */
.panel-right {
  background: var(--white);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

/* Logo header */
.form-header {
  padding: 28px 32px 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.logo img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  display: block;
}

.form-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 28px 48px 40px;
}

.form-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.form-subtitle {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 32px;
}

/* ---- Fields ---- */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 500px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-medium);
  letter-spacing: 0.01em;
}

.field-input {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.92rem;
  font-family: var(--font-main);
  color: var(--text-dark);
  background: var(--input-bg);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-input);
  outline: none;
  transition:
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

.field-input::placeholder {
  color: var(--text-light);
}

.field-input:focus {
  border-color: var(--green-primary);
  background: var(--input-focus-bg);
  box-shadow: 0 0 0 3px rgba(30, 138, 60, 0.12);
}

/* Password with eye toggle */
.password-wrapper {
  position: relative;
}

.password-wrapper .field-input {
  padding-right: 44px;
}

.eye-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  display: flex;
  align-items: center;
  padding: 4px;
  transition: color var(--transition);
}

.eye-toggle:hover {
  color: var(--text-medium);
}

/* Forgot password */
.forgot-link-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.forgot-link {
  font-size: 0.82rem;
  color: var(--green-link);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

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

/* Submit button */
.btn-submit {
  width: 100%;
  padding: 13px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-main);
  color: var(--white);
  background: linear-gradient(
    135deg,
    var(--green-primary) 0%,
    var(--green-dark) 100%
  );
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(30, 138, 60, 0.35);
  transition:
    background var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
  margin-top: 4px;
}

.btn-submit:hover {
  background: linear-gradient(135deg, var(--green-hover) 0%, #0e4a1e 100%);
  box-shadow: 0 6px 20px rgba(30, 138, 60, 0.45);
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(30, 138, 60, 0.3);
}

/* Sign-up link */
.signup-text {
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-light);
  margin-top: 6px;
}

.signup-link {
  color: var(--green-link);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition);
}

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

/* 
   RESPONSIVE
    */

/* Medium screens — reduce padding */
@media (max-width: 900px) {
  .page-wrapper {
    padding: 16px;
    gap: 16px;
  }

  .panel {
    height: 520px;
  }

  .form-body {
    padding: 20px 32px 32px;
  }
}

/* Small screens — stack vertically, slideshow on top */
@media (max-width: 640px) {
  .page-wrapper {
    flex-direction: column;
    padding: 16px;
    gap: 16px;
    align-items: stretch;
  }

  .panel {
    max-width: 100%;
    height: auto;
  }

  .panel-left {
    height: 280px;
  }

  .panel-right {
    height: auto;
  }

  .form-body {
    padding: 20px 24px 32px;
    justify-content: flex-start;
  }

  .form-title {
    font-size: 1.3rem;
  }
}

/* Very small screens */
@media (max-width: 380px) {
  .form-body {
    padding: 16px 16px 28px;
  }

  .form-header {
    padding: 20px 16px 0;
  }
}
