/* Trase.v4 Theme */

/* Base styles */
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #111111;
  color: #E5E7EB;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Two-column layout container */
.trase-container {
  display: flex;
  min-height: 100vh;
}

.trase-login-panel {
  width: 40%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 56px;
}

.trase-image-panel {
  width: 60%;
  position: relative;
}

.pf-v5-c-login__container {
  width: 100%;
  max-width: 480px;
}

/* Header and logo */
.pf-v5-c-login__header {
  text-align: left;
  margin-bottom: 2.5rem;
}

#kc-logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 300;
  line-height: 125%;
  color: #AFB3BA;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  margin-left: 5.5rem;
}

/* Adjust logo subtitle alignment on smaller screens */
@media (max-width: 768px) {
  .logo-subtitle {
    margin-left: 0;
    text-align: left;
  }
}

#kc-logo-wrapper img {
  width: 212px;
}

#kc-page-title {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 125%;
  color: #FFFFFF;
  text-align: left;
  margin-bottom: 0.5rem;
}

.subtitle {
  width: 100%;
  font-family: 'Inter Display', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  color: #AFB3BA;
  text-align: center;
}

.subtitle a {
  color: #FFFFFF;
  text-decoration: underline;
}

/* Form styles */
.pf-v5-c-form__group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.pf-v5-c-form__label {
  font-family: 'Inter Display', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  color: #FFFFFF;
  text-align: left;
}

.pf-v5-c-form-control {
  width: 100%;
  height: 52px;
  padding: 8px 16px;
  background: #212225;
  border-radius: 8px;
  border: 1px solid #363A3F;
  outline: none;
  color: #FFFFFF;
  box-sizing: border-box;
}

.pf-v5-c-form-control:focus {
  border-color: #FFFFFF;
}

.pf-v5-c-form-control[aria-invalid="true"] {
  border: 1px solid #F05252 !important;
}

.pf-v5-c-input-group {
  position: relative;
}

.pf-v5-c-input-group .input-icon + .pf-v5-c-form-control {
  padding-left: 2.5rem;
}

.pf-v5-c-input-group .input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #A1A1AA;
}

/* Flex container for remember me / forgot password */
.flex {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

/* New row class used by updated login form */
.remember-forgot-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.pf-v5-c-check {
  display: flex;
  align-items: center;
}

.pf-v5-c-check__input {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 0.5px solid #AFB3BA;
  background: transparent;
}

.pf-v5-c-check__label {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 14px;
  color: #FFFFFF;
  margin-left: 0.5rem;
}

/* Links */
.forgot-password a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  color: #FFFFFF;
  text-decoration: underline;
}

/* Signup helper text used in updated form */
.signup-text {
  width: 100%;
  font-family: 'Inter Display', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  color: #AFB3BA;
  text-align: left;
}

.signup-text a {
  color: #FFFFFF;
  text-decoration: underline;
}

/* Login Button */
.pf-v5-c-button.pf-m-primary {
  width: 50%;
  height: 48px;
  padding: 12px 20px;
  background: #FF5A1F;
  border-radius: 8px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-family: 'Inter Display', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #FFFFFF;
  border: none;
  margin-top: 1.5rem;
  gap: 8px;
}

.pf-v5-c-form__group.submit {
    display: flex;
    justify-content: center;
}

.pf-v5-c-button.pf-m-primary:hover {
  background: #E54E1B;
}

a.pf-v5-c-button.pf-m-primary {
  text-decoration: none;
  width: auto;
  height: auto;
  padding: 10px 24px;
}

/* Email sent actions (resend + back to login) */
.email-sent-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  margin-top: 2rem;
}

.email-sent-actions .pf-v5-c-button.pf-m-primary,
.email-sent-actions .resend-email-link {
  min-width: 160px;
  height: 44px;
  padding: 0 24px;
  font-family: 'Inter Display', sans-serif;
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-top: 0;
}

.email-sent-actions .pf-v5-c-button.pf-m-primary {
  background: #FF5A1F;
  color: #FFFFFF;
  border: none;
}

.resend-email-link {
  color: #FF5A1F;
  border: 1px solid #FF5A1F;
  background: transparent;
  transition: all 0.2s ease;
}

.resend-email-link:hover {
  background: rgba(255, 90, 31, 0.1);
}

/* Error messages */
.pf-v5-c-alert.pf-m-danger {
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  background-color: rgba(240, 82, 82, 0.1);
  border: 1px solid #F05252;
  color: #F87171;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

.pf-v5-c-alert__icon {
    margin-right: 0.5rem;
}

/* Inline error text for login form */
.error-message {
  align-self: stretch;
  color: #F05252;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 150%;
  margin-top: 4px;
}

/* Form field error helper text */
.pf-v5-c-form__helper-text.pf-m-error {
  color: #F05252;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 150%;
  margin-top: 4px;
}

/* Hide unnecessary elements */
#kc-info,
#kc-info-wrapper,
.pf-v5-c-login__footer,
.pf-v5-c-login__main-footer {
  display: none;
}

.trase-login-panel .pf-v5-c-login,
.trase-login-panel .pf-v5-c-login__container {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: 100% !important;
  height: auto !important;
}

@media (max-width: 1024px) {
  .trase-login-panel {
    width: 100%;
  }
  .trase-image-panel {
    display: none;
  }
}
#kc-form-options {
  margin-top: 1.5rem;
  text-align: left;
}

#kc-form-options a {
  color: #FFFFFF;
  text-decoration: underline;
}

/* Reset password page subtitle */
.reset-subtitle {
  font-family: 'Inter Display', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 150%;
  color: #AFB3BA;
  margin-bottom: 2rem;
  text-align: left;
}

/* Back to login button */
.back-to-login-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.back-to-login-link,
#kc-info-message a {
  display: inline-flex;
  padding: 12px 20px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  color: #FF5A1F;
  font-family: 'Inter Display', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 150%;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.back-to-login-link:hover,
#kc-info-message a:hover {
  opacity: 0.8;
}

#kc-info-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 3rem;
}

#kc-info-message p {
  margin: 0 0 1.5rem;
  font-family: 'Inter Display', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 150%;
  color: #AFB3BA;
  text-align: center;
}

/* Action buttons row (for email sent, no account found pages) */
.action-buttons {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.action-buttons .back-to-login-link {
  margin-top: 0;
}

.action-buttons .pf-v5-c-button.pf-m-primary {
  margin-top: 0;
  text-decoration: none;
}

/* Universal background styling for all login pages */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/login-bg.jpg');
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
  transform: scaleX(-1);
  opacity: 0.65;
  z-index: -1;
}

.trase-image-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/login-bg.jpg');
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
  transform: scaleX(-1);
  opacity: 0.15;
  z-index: -1;
}

/* Responsive media queries for all pages */
@media (min-width: 1920px) {
  .trase-image-panel::before {
    opacity: 0.15;
  }
  body::before {
    opacity: 0.65;
  }
}

@media (min-width: 1439px) and (max-width: 1919px) {
  .trase-image-panel::before {
    opacity: 0.65;
  }
  body::before {
    opacity: 0;
  }
}

@media (min-width: 1024px) and (max-width: 1439px) {
  .trase-image-panel::before {
    opacity: 0.45;
  }
  body::before {
    opacity: 0.25;
  }
}

@media (max-width: 1024px) {
  .trase-image-panel::before {
    opacity: 0.15;
  }
  body::before {
    opacity: 0.15;
  }
}
