/* Splash / landing page */

.splash-page {
  margin: 0;
  min-height: 100vh;
  position: relative;
}

.splash-admin-link {
  position: fixed;
  top: 0.75rem;
  right: 1rem;
  z-index: 10;
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.35);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  transition: color 0.2s ease;
}

.splash-admin-link:hover {
  color: var(--color-accent);
}

.splash {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

/* ----- Desktop: image left, form right ----- */
@media (min-width: 768px) {
  .splash {
    flex-direction: row;
    align-items: stretch;
  }

  .splash-panel {
    flex: 1;
    min-width: 0;
  }

  .splash-panel--image {
    flex: 1.1;
    position: relative;
  }

  .splash-panel--form {
    flex: 0 0 42%;
    max-width: 28rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--color-bg);
  }
}

/* ----- Mobile: image on top, form below ----- */
@media (max-width: 767px) {
  .splash-panel--image {
    flex: 0 0 38vh;
    min-height: 14rem;
    position: relative;
  }

  .splash-panel--form {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1.5rem 1rem 2rem;
    background: var(--color-bg);
    overflow-y: auto;
  }
}

/* Image panel – background and overlay */
.splash-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #2c2c2c;
}

.splash-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.splash-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.2) 0%, transparent 35%);
  pointer-events: none;
}

@media (max-width: 767px) {
  .splash-overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.15) 100%);
  }
}

/* Form card */
.splash-card {
  width: 100%;
  max-width: 22rem;
  background: rgba(250, 249, 247, 0.98);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
}

@media (max-width: 767px) {
  .splash-card {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  }
}

.splash-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
  text-align: center;
  color: var(--color-text);
}

.splash-subtitle {
  font-size: 0.95rem;
  color: #666;
  text-align: center;
  margin: 0 0 1.5rem;
}

.splash-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.splash-tab {
  flex: 1;
  padding: 0.6rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: #666;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.splash-tab:hover {
  color: var(--color-text);
}

.splash-tab.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.splash-form.hidden {
  display: none;
}

.splash-fields .input-group {
  margin-bottom: 1rem;
}

.splash-fields .input-group input {
  max-width: none;
}

.btn-block {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
}

.splash-error,
.splash-message {
  font-size: 0.9rem;
  margin: 0.75rem 0 0;
  padding: 0.5rem 0;
}
.splash-error.error,
.splash-message.error {
  color: #b91c1c;
}
.splash-forgot,
.splash-back {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}
.btn-link {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  color: var(--color-accent);
  cursor: pointer;
  text-decoration: underline;
}
.btn-link:hover {
  color: var(--color-text);
}
