/* ── Login Page Styles ── */

.login label {
  position: relative;
}

section.login_header details.dropdown {
  margin: 0;
}

section.login_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.login_header summary.outline {
  border: 0;
  padding-right: 0;
}

#showPW {
  position: absolute;
  bottom: 14px;
  right: 12px;
  cursor: pointer;
}

#loginReload {
  cursor: pointer;
}

body.login {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.login .error {
  background: transparent !important;
}

.login footer {
  position: absolute;
  bottom: 0;
  left: 0;
}

.password_error {
  font-size: var(--hb-font-size-sm);
  color: var(--pico-background-error);
}

section.login_link {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

section.external_links {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--pico-spacing);
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-wrap: wrap;
}

/* ── Login Form ── */

.login_form_container {
  display: flex;
  overflow: hidden;
  animation: fadeUp 0.5s forwards;
}

.login_form {
  width: 42%;
  min-height: 600px;
  max-height: 600px;
  overflow-y: scroll;
}

.login_image_container {
  position: relative;
  width: 58%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

img.login_background {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Registration Form ── */

form#form_register,
a#reset_registration,
form#form_register_commercial {
  display: none;
  animation: fadeUp 0.5s forwards;
}

fieldset.location,
fieldset.company,
fieldset.name {
  display: flex;
  gap: var(--pico-spacing);
}

label#input_post_code {
  max-width: 105px;
}

.register_title {
  margin-top: 10px;
}

.register_radio_group label {
  border: 1px solid var(--pico-form-element-border-color);
  padding: var(--pico-spacing);
  border-radius: var(--pico-border-radius);
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  flex: 1;
  justify-content: flex-end;
}

.register_radio_group label:hover {
  background: #f6f6f6;
}

.register_radio_group {
  display: flex;
  align-items: center;
  gap: var(--pico-spacing);
}

/* ── Login News Carousel ── */

.news-carousel {
  position: absolute;
  left: 24px;
  right: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-carousel-inner {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.news-carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.news-carousel-card {
  flex: 0 0 100%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.news-carousel-card-image {
  width: 100%;
  max-height: 180px;
  overflow: hidden;
}

.news-carousel-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-carousel-card-content {
  padding: 12px 16px 24px;
  overflow: hidden;
}

.news-carousel-card-content h4 {
  margin: 4px 0 6px;
  font-size: 1.1rem;
  line-height: 1.3;
  color: #1a1a1a;
}

.news-carousel-card-content > div {
  font-size: 0.95rem;
  color: #555;
  max-height: 2.6em;
  overflow: hidden;
}

.news-carousel-card-content > div p {
  margin: 0;
}

.news-carousel-card-date {
  font-size: 0.75rem;
  color: #888;
}

.news-carousel-btn {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: var(--hb-font-size-base);
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  margin: 0;
  padding: 0;
}

.news-carousel-btn:hover {
  background: #fff;
}

/* ── Login Responsive ── */

@media (max-width: 768px) {
  .login_image_container {
    display: none;
  }

  .login_form {
    width: 100%;
  }

  .login footer {
    position: relative;
    bottom: unset;
    left: unset;
  }
}
