/* =============================================
   BVetter — login.css
   Page: Login page (no navbar — unauthenticated).
   Depends: variables.css (must load first in HTML)

   Path from public/html/[page].html:
     <link rel="stylesheet" href="../css/variables.css"/>
     <link rel="stylesheet" href="../css/login.css"/>

   All colors use CSS custom properties from variables.css.
   To change a color: edit variables.css only — not this file.
   ============================================= */

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

body {
  font-family: 'Manrope', sans-serif;
  height: 100vh;
  overflow: hidden;
  background: #ffffff;
}

.page-wrapper {
  display: flex;
  width: 100%;
  height: 100vh;
}

/* =============================================
   LEFT PANEL
   ============================================= */
.left-panel {
  width: 40%;
  position: relative;
  overflow: hidden;
  background: var(--color-navy);
}

.bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.left-logo {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 80px;
  z-index: 3;
}

.left-content {
  position: absolute;
  bottom: 60px;
  left: 40px;
  right: 40px;
  z-index: 3;
}

.left-content h1 {
  font-size: 52px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 16px;
}

.left-content p {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.5px;
  line-height: 1.5;
  text-transform: uppercase;
}

/* Cross/plus decorations */
.cross-deco {
  position: absolute;
  color: rgba(255, 255, 255, 0.15);
  font-weight: 900;
  line-height: 1;
  user-select: none;
  z-index: 2;
}

.cross-1 {
  font-size: 180px;
  bottom: 30px;
  right: -20px;
}

.cross-2 {
  font-size: 120px;
  bottom: -20px;
  right: 80px;
}

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

.form-container {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.right-logo {
  width: 120px;
  margin-bottom: 28px;
}

.form-container h2 {
  font-size: 42px;
  font-weight: 800;
  color: var(--color-green-dark);
  margin-bottom: 10px;
  line-height: 1.1;
}

.subtitle {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.5;
}

/* =============================================
   FORM ELEMENTS
   ============================================= */
.form-group {
  width: 100%;
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-body);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-icon {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.input-wrapper input {
  width: 100%;
  padding: 14px 44px;
  border: 1.5px solid var(--border-input);
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-input-alt);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.input-wrapper input::placeholder {
  color: var(--text-faint);
  font-weight: 400;
}

.input-wrapper input:focus {
  border-color: var(--color-green-dark);
  background: #ffffff;
}

.toggle-pw {
  position: absolute;
  right: 14px;
  width: 18px;
  height: 18px;
  object-fit: contain;
  cursor: pointer;
}

/* Forgot password - positioned to the right */
.forgot-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.forgot-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-green-dark);
  text-decoration: none;
  text-align: right;
  line-height: 1.3;
}

.forgot-link:hover {
  text-decoration: underline;
}

/* =============================================
   LOGIN BUTTON
   ============================================= */
.btn-login {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--color-green-dark) 0%, var(--color-green) 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: opacity 0.2s;
  margin-bottom: 14px;
}

.btn-login:hover {
  opacity: 0.9;
}

.btn-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

/* =============================================
   SIGN UP LINK
   ============================================= */
.signup-text {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  width: 100%;
  text-align: center;
}

.signup-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-green-dark);
  text-decoration: none;
}

.signup-link:hover {
  text-decoration: underline;
}

/* =============================================
   NOTICE MODAL — replaces browser alert()
   ============================================= */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 28px 28px 24px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-modal);
  animation: modalPop 0.18s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.modal-box.narrow {
  max-width: 340px;
  text-align: center;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.94) translateY(6px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.notice-box {
  padding: 34px 28px 28px;
}

.notice-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--color-green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
}

.notice-message {
  font-size: 14.5px;
  font-weight: 500;
  font-family: 'Manrope', sans-serif;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 26px;
}

.notice-ok-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 12px 30px;
  background: linear-gradient(135deg, var(--color-green-dark) 0%, var(--color-green) 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 168, 46, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.notice-ok-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 168, 46, 0.38);
  opacity: 0.96;
}

.notice-ok-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(15, 168, 46, 0.3);
}

/* =============================================
   RESPONSIVE — see public/css/variables.css for
   the shared breakpoint scale used across all pages.

   Desktop is a fixed 100vh split screen with
   overflow:hidden — that clips content that can't
   fit, so tablet/mobile switch to a stacked, scrollable
   layout instead of shrinking the split in place.
   ============================================= */

/* ── Tablet: 481px – 1024px ─────────────────── */
@media (max-width: 1024px) {
  body { height: auto; min-height: 100vh; overflow: visible; }

  .page-wrapper { flex-direction: column; height: auto; min-height: 100vh; }

  .left-panel {
    width: 100%;
    height: auto;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
    padding: 28px 32px;
  }

  .left-logo {
    position: static;
    width: 56px;
  }

  .left-content {
    position: relative;
    z-index: 3;
    bottom: auto;
    left: auto;
    right: auto;
  }

  .left-content h1 { font-size: 28px; margin-bottom: 10px; }

  .left-content p { font-size: 11px; }

  .cross-deco { display: none; }

  .right-panel { width: 100%; padding: 40px 32px; }

  .form-container { max-width: 460px; }
}

/* ── Mobile: up to 480px ───────────────────────
   Green banner is dropped entirely — logo + heading
   + subtitle center themselves at the top of the form
   instead, so the page reads as one natural flow.    */
@media (max-width: 480px) {
  .left-panel { display: none; }

  .right-panel { padding: 32px 20px; }

  .form-container { align-items: center; text-align: center; }

  .form-group { text-align: left; }

  .right-logo { width: 96px; margin-bottom: 20px; }

  .form-container h2 { font-size: 28px; }

  .subtitle { margin-bottom: 24px; }
}