/* BMT Plus Custom Split-Screen Login Style System */

/* Reset & Base Rules */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #fafafa;
  color: #1c1c1f;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Split-Screen Container Layout */
.login-split-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Left Brand Panel: Dark charcoal reinforces bmtplus identity */
.brand-side {
  flex: 1;
  background-color: #121212;
  color: #ffffff;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4rem 5rem;
  overflow: hidden;
  /* Beautiful radial gradient matching the dark logo with an orange hue glow */
  background: radial-gradient(circle at 10% 20%, rgba(224, 83, 34, 0.12) 0%, rgba(18, 18, 18, 1) 90%), #121212;
}

.brand-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(18, 18, 18, 0.2) 0%, rgba(224, 83, 34, 0.05) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Brand Header */
.brand-header {
  position: relative;
  z-index: 2;
}

.brand-logo {
  max-height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-logo-text {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
}

.brand-logo-text .white-text {
  color: #ffffff;
}

.brand-logo-text .orange-text {
  color: #e05322;
}

/* Hide mobile logo container by default on desktop */
.mobile-logo-container {
  display: none;
}

/* Carousel Container (Middle) */
.carousel-container {
  position: relative;
  z-index: 2;
  margin: auto 0;
  max-width: 550px;
}

.carousel-slides {
  position: relative;
  width: 100%;
  min-height: 180px;
}

.carousel-slide {
  opacity: 0;
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
  transform: translateY(10px);
}

.carousel-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

.slide-quote-icon {
  color: rgba(224, 83, 34, 0.4);
  width: 36px;
  height: 36px;
  margin-bottom: 1.5rem;
}

.slide-text {
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: #f4f4f5;
}

/* Carousel Dots indicator */
.carousel-dots {
  display: flex;
  align-items: center;
  margin-top: 2rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  margin-right: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.dot.active {
  background: #e05322;
  width: 24px;
  border-radius: 4px;
}

/* Brand Footer */
.brand-footer {
  position: relative;
  z-index: 2;
  font-size: 0.85rem;
  color: #71717a;
}

/* Right Panel: Form side (Light, clean aesthetic) */
.form-side {
  flex: 1;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 3rem;
  position: relative;
}

.form-container {
  max-width: 420px;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Security Badge: Orange pill anchors trust instantly */
.security-badge {
  margin-bottom: 1.8rem;
}

.security-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(224, 83, 34, 0.07);
  border: 1px solid rgba(224, 83, 34, 0.18);
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  color: #e05322;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}

/* Welcome Headers */
.form-header {
  margin-bottom: 2rem;
}

.form-title {
  font-size: 2rem;
  font-weight: 700;
  color: #121212;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.form-subtitle {
  font-size: 0.95rem;
  color: #71717a;
  line-height: 1.5;
}

/* Drupal Messages styling - revamped beautiful layout */
.messages-wrapper {
  margin-bottom: 1.5rem;
}

.messages-wrapper .messages {
  padding: 1rem 1.2rem;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0 0 1rem 0;
  display: block;
  border-left: 4px solid;
}

.messages-wrapper .messages--error {
  background-color: rgba(224, 83, 34, 0.06);
  border-color: #e05322;
  color: #b13c15;
}

.messages-wrapper .messages--warning {
  background-color: #fffbeb;
  border-color: #f59e0b;
  color: #b45309;
}

.messages-wrapper .messages--status {
  background-color: #f0fdf4;
  border-color: #22c55e;
  color: #15803d;
}

.messages-wrapper ul {
  padding-left: 1.25rem;
  margin-top: 0.4rem;
}

.messages-wrapper li {
  margin-bottom: 0.2rem;
}

.messages-wrapper h2.visually-hidden {
  display: none !important;
}

/* Drupal Core Form elements styling overrides */
.form-wrapper form {
  width: 100%;
}

.form-wrapper .js-form-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.form-wrapper label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #27272a;
  margin-bottom: 0.4rem;
}

.form-wrapper label.option {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  font-weight: 400;
  cursor: pointer;
  gap: 0.5rem;
  margin-bottom: 0;
}

/* Input Fields styling overrides */
.form-wrapper input[type="text"],
.form-wrapper input[type="password"],
.form-wrapper input[type="email"],
.form-wrapper input.form-text {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: #18181b;
  background-color: #fafafa;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-wrapper input[type="text"]:focus,
.form-wrapper input[type="password"]:focus,
.form-wrapper input[type="email"]:focus,
.form-wrapper input.form-text:focus {
  border-color: #e05322;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(224, 83, 34, 0.18);
}

/* Submit Buttons overrides */
.form-wrapper .form-actions {
  margin-top: 1.8rem;
}

.form-wrapper input[type="submit"],
.form-wrapper button.form-submit {
  width: 100%;
  padding: 0.85rem 1.25rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: #ffffff;
  background-color: #e05322;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-wrapper input[type="submit"]:hover,
.form-wrapper button.form-submit:hover {
  background-color: #c94317;
  box-shadow: 0 4px 14px rgba(224, 83, 34, 0.25);
  transform: translateY(-1px);
}

.form-wrapper input[type="submit"]:active,
.form-wrapper button.form-submit:active {
  transform: translateY(0);
  box-shadow: none;
}

.form-wrapper .description {
  font-size: 0.8rem;
  color: #71717a;
  margin-top: 0.35rem;
}

/* Themed switch links under form */
.form-navigation {
  margin-top: 1.5rem;
  text-align: center;
}

.switch-link {
  font-size: 0.88rem;
  color: #e05322;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.switch-link:hover {
  color: #c94317;
  text-decoration: underline;
}

/* IT Support Escape Hatch */
.support-hatch {
  margin-top: 2.2rem;
  border-top: 1px solid #e4e4e7;
  padding-top: 1.5rem;
  text-align: center;
}

.support-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #71717a;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.support-link:hover {
  color: #e05322;
}

.support-icon {
  width: 16px;
  height: 16px;
}

/* Responsive Rules for Small Screens (< 768px) */
@media (max-width: 768px) {
  .login-split-container {
    flex-direction: column;
  }
  
  .brand-side {
    display: none; /* Hide brand panel on mobile to optimize form speed and space */
  }
  
  /* Keep the form-side background white on mobile */
  .form-side {
    background-color: #ffffff;
    padding: 3rem 1.5rem;
    min-height: 100vh;
  }

  /* Show the mobile logo container */
  .mobile-logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
  }

  .mobile-brand-logo {
    max-height: 52px;
    width: auto;
    object-fit: contain;
    display: block;
  }

  .mobile-brand-logo-text {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
  }

  /* Make logo text dark for the white background */
  .mobile-brand-logo-text .white-text {
    color: #121212;
  }

  .mobile-brand-logo-text .orange-text {
    color: #e05322;
  }

  /* Center the security badge and header elements */
  .security-badge {
    display: flex;
    justify-content: center;
  }

  .form-title {
    text-align: center;
  }

  .form-subtitle {
    text-align: center;
  }
}
