/* Login Page Styles - Based on Mockup Design */

/* Login page wrapper */
.login-page-wrapper {
  padding: 2rem 0;
}

/* Unified button styling for all buttons in login container */
.login-container .btn {
  --bimco-btn-padding-y: 0.625rem;
  --bimco-btn-padding-x: 1.5rem;
}

.login-container .btn__content {
  padding: var(--bimco-btn-padding-y) var(--bimco-btn-padding-x);
}

/* Main login container - expanded for more space */
.login-container {
    max-width: 450px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Button row layout */
.login-button-row {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-direction: row;
}

.login-button-row .btn {
    width: 292px !important;
}

.login-page {
  min-height: calc(100vh - var(--bimco-header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-color: #f8f9fa;
}

.login-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 3rem;
  width: 100%;
  max-width: 700px; /* Increased from 480px for more space */
}

.login-title {
  text-align: center;
  margin-bottom: 2rem;
  color: #1e3a47;
  font-size: 1.75rem;
  font-weight: 600;
}

.login-form-group {
  margin-bottom: 1.5rem;
}

.login-form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: #555;
  font-weight: 500;
  font-size: 0.95rem;
}

.login-form-input {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-bottom: 2px solid #ddd;
  background: transparent;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.login-form-input:focus {
  outline: none;
  border-bottom-color: #007bff;
}

.login-form-input:focus + .login-form-label {
  color: #007bff;
}

.login-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.login-reset-link {
  color: #007bff;
  text-decoration: none;
  font-size: 0.9rem;
  border: 2px solid #007bff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  background: transparent;
  transition: all 0.3s ease;
}

.login-reset-link:hover {
  background: #007bff;
  color: white;
  text-decoration: none;
}

.login-submit-btn {
  background: #e47d00;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.login-submit-btn:hover {
  background: #cc6a00;
}

.login-submit-btn::after {
  content: "→";
  font-size: 1.2rem;
}

.login-divider {
  text-align: center;
  margin: 2rem 0;
  position: relative;
  color: #999;
  font-size: 0.9rem;
}

.login-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #ddd;
  z-index: 1;
}

.login-divider span {
  background: white;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
}

.login-external-btn {
  width: 100%;
  padding: 0.75rem;
  background: #e47d00;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 1rem;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.login-external-btn:hover {
  background: #cc6a00;
  color: white;
  text-decoration: none;
}

.login-external-description {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.login-create-account {
  text-align: center;
  margin-top: 2rem;
}

.login-create-btn {
  background: #e47d00;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.login-create-btn:hover {
  background: #cc6a00;
  color: white;
  text-decoration: none;
}

.login-create-description {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 576px) {
  .login-container {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }
  
  .login-actions {
    flex-direction: column;
    gap: 1rem;
  }
  
  .login-reset-link {
    width: 100%;
    text-align: center;
  }
}

/* Dark theme support */
.theme--dark .login-page {
  background-color: #2c4a57;
}

.theme--dark .login-container {
  background: #1e3a47;
  color: white;
}

.theme--dark .login-form-input {
  color: white;
  border-bottom-color: #495057;
}

.theme--dark .login-form-input::placeholder {
  color: #adb5bd;
}

/* New Layout Styles for Mockup Design */

/* Button Row Layout */
.login-button-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-direction: row;
}

.login-button-row .btn {
  flex: 1;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
}

.btn-outline-secondary {
  border: 1px solid #6c757d;
  color: #6c757d;
  background: transparent;
}

.btn-outline-secondary:hover {
  background-color: #6c757d;
  color: white;
  text-decoration: none;
}

/* External Provider Layout */
.external-provider-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  text-align: justify;
}

.external-provider-row > div:first-child {
  flex: 0 0 50%;
  width: 50%;
}

.external-provider-row > div:first-child .btn {
  width: 292px !important;
  box-sizing: border-box;
}

.external-provider-description {

  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

.external-provider-description a {
  color: #007bff;
  text-decoration: none;
}

.external-provider-description a:hover {
  text-decoration: underline;
}

/* Create Account Section */
.login-create-account {
  margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Fix horizontal scroll and white space on mobile */
  body {
    overflow-x: hidden;
  }
  
  /* Center h3 on mobile - login page only */
  .login-container h3 {
    text-align: center;
  }
  
  .login-container {
    padding: 1rem;
    max-width: 100%;
    margin: 0.5rem auto;
    box-shadow: none;
  }
  
  /* Reduce button sizes for mobile */
  .login-button-row {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }
  
  .login-button-row .btn,
  .login-button-row .btn-link {
    width: 100% !important;
    /* padding: 0.5rem 1rem !important; */
    font-size: 0.85rem !important;
    /* min-height: 40px !important; */
    /* height: 40px !important; */
    line-height: normal;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Reduce input sizes */
  .form-control {
    margin-bottom: 0.75rem;
  }
  
  .form-control__input {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    height: 40px;
  }
  
  .form-control__label {
    font-size: 0.8rem;
  }
  
  /* External provider buttons - full width on mobile */
  .external-provider-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    text-align: left;
    margin-bottom: 0.75rem;
  }
  
  .external-provider-row > div:first-child {
    flex: 1;
    width: 100%;
  }
  
  .external-provider-row > div:first-child .btn {
    width: 100% !important;
    
    font-size: 0.85rem;
    min-height: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .external-provider-description {
    text-align: left;
    padding-top: 0;
    font-size: 0.8rem;
    margin: 0;
  }
  
  /* Reduce divider spacing */
  .login-divider {
    margin: 1rem 0;
    font-size: 0.85rem;
  }
  
  .login-external-group {
    margin-bottom: 0.75rem;
  }
  
  /* Fix button content alignment */
  .btn__content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
}

/* Font Awesome Icons Styling */
.btn-icon {
  display: inline-block;
  width: auto;
  height: auto;
  margin-left: 0px;
  vertical-align: middle;
  font-size: 1rem;
  color: inherit;
}

/* Font Awesome brand icons in buttons */
.btn .fa-brands {
  margin-left: 8px;
  font-size: 1.1rem;
}

/* For SVG images */
.btn-icon img {
  display: inline-block;
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.btn-icon--dark {
  filter: invert(18%) sepia(79%) saturate(1789%) hue-rotate(169deg) brightness(97%) contrast(101%) !important;
}
/* White icon for hover state */
.btn__content--hover .btn-icon {
  color: currentColor;
}

.btn__content {
  display: flex;
  align-items: center;
  justify-content: center;
}