/*
* RunPe Organizer Authentication Styles
* Custom styling for organizer login/register pages
*/

/* Brand Colors */
:root {
  --runpe-primary: #00a651;
  --runpe-primary-hover: #009347;
  --runpe-secondary: #32594b;
  --runpe-light-green: #dff0ea;
  --runpe-dark-green: #163b2f;
  --runpe-gray: #799088;
}

.auth-container {
  display: flex; /*! width: 1366px; */
  height: 688px;
  padding: 12px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.60) 0%,
      rgba(0, 0, 0, 0.60) 100%
    ),
    url('../media/auth/loginbg_1orgnizer.jpg') lightgray 50% / cover no-repeat;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative; /*! min-height: calc(100vh - 200px); */
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  margin: 12px;
}

/* Custom Background Images */
.auth-bg-custom {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: font-size-56;
}

/* Desktop banner */
@media (min-width: 1200px) {
}

/* Mobile responsive background */
@media (max-width: 768px) {
  .auth-bg-custom {
    margin: 8px;
    min-height: calc(100vh - 160px);
    border-radius: 6px;
  }
}

/* Tablet responsive background */
@media (min-width: 769px) and (max-width: 1024px) {
  .auth-bg-custom {
    margin: 10px;
    min-height: calc(100vh - 180px);
    border-radius: 7px;
  }
}

/* Custom Authentication Form Container */
.auth-form-container {
  width: 100%;
  max-width: 445px;
  background: #fff !important;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1) !important;
  border: 1px solid rgba(0, 163, 119, 0.1) !important;
  border-radius: 12px !important;
}

/* Mobile responsive form container */
@media (max-width: 575.98px) {
  .auth-form-container {
    margin: 1rem;
    border-radius: 0.75rem !important;
  }
}

/* Tablet responsive form container */
@media (min-width: 576px) and (max-width: 991.98px) {
  .auth-form-container {
    margin: 1.5rem;
    border-radius: 1rem !important;
  }
}

/* Custom Login Form Styling - Metronic Priority */
.login-form-custom {
  display: flex !important;
  width: 445px !important;
  padding: 32px 24px !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 28px !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  background: color(display-p3 1 1 1) !important;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1) !important;
  border: 1px solid rgba(0, 163, 119, 0.1) !important;
}

/* Mobile responsive login form */
@media (max-width: 575.98px) {
  .login-form-custom {
    width: calc(100vw - 2rem) !important;
    max-width: 400px !important;
    padding: 24px 20px !important;
    gap: 24px !important;
    border-radius: 8px !important;
    margin: 1rem !important;
  }
}

/* Tablet responsive login form */
@media (min-width: 576px) and (max-width: 991.98px) {
  .login-form-custom {
    width: 420px !important;
    padding: 28px 22px !important;
    gap: 26px !important;
    border-radius: 10px !important;
  }
}

/* Override Bootstrap/Metronic success color with RunPe green */
.btn-success {
  background-color: var(--runpe-primary) !important;
  border-color: var(--runpe-primary) !important;
  color: #ffffff !important;
}

.btn-success:hover {
  background-color: var(--runpe-primary-hover) !important;
  border-color: var(--runpe-primary-hover) !important;
}

.btn-success:focus,
.btn-success.focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 166, 81, 0.25) !important;
}

/* Text success color */
.text-success {
  color: var(--runpe-primary) !important;
}

/* Link primary color */
.link-primary {
  color: var(--runpe-primary) !important;
}

.link-primary:hover {
  color: var(--runpe-primary-hover) !important;
}

/* Form controls styling */
.form-control {
  border: 1.5px solid #e4e6ef;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  transition: all 0.3s ease;
  background-color: #ffffff;
}

.form-control-lg {
  padding: 14px 16px;
  font-size: 15px;
  border-radius: 8px;
}

.form-control:focus {
  border-color: var(--runpe-primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 166, 81, 0.1);
  background-color: #ffffff;
}

.form-control.bg-transparent {
  background-color: #ffffff;
}

/* Form labels styling */
.form-label {
  color: #1e2129;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}

/* Required asterisk styling */
.text-danger {
  color: #f1416c !important;
}

/* Three-Section Header Styles */

/* Top Promotional Bar */
.bg-dark {
  background-color: #1e2129 !important;
}

.fs-7 {
  font-size: 0.75rem !important;
}

.fs-8 {
  font-size: 0.7rem !important;
}

.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
  background: transparent;
  font-size: 0.7rem;
  padding: 0.25rem 0.75rem;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
}

/* Main Navigation Bar */
.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Sub-Navigation Bar */
.nav-link {
  color: #1e2129 !important;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: var(--runpe-primary) !important;
}

.dropdown-toggle::after {
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Responsive adjustments for header */
@media (max-width: 991.98px) {
  /* Hide promotional text on smaller screens */
  .bg-dark .d-flex span:not(:first-child) {
    display: none;
  }

  /* Adjust search bar width */
  .position-relative input {
    width: 200px !important;
  }
}

@media (max-width: 767.98px) {
  /* Stack header elements on mobile */
  .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Hide some navigation items */
  .btn-outline-light {
    display: none;
  }

  /* Simplify sub-navigation */
  .gap-8 {
    gap: 1rem !important;
    flex-wrap: wrap;
  }

  .nav-link {
    font-size: 0.875rem;
    padding: 0.25rem 0;
  }
}

@media (max-width: 575.98px) {
  /* Further simplification for very small screens */
  .bg-dark .d-flex {
    justify-content: center;
  }

  .position-relative input {
    width: 150px !important;
  }

  /* Hide some sub-navigation items */
  .gap-8 > div:nth-child(n + 4) {
    display: none;
  }
}

/* Hero Section Styles */
.auth-hero-container {
  position: relative;
}

.auth-hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(22, 59, 47, 0.7) 0%,
    rgba(50, 89, 75, 0.5) 100%
  );
}

/* Login Card Overlay Styles */
.auth-login-card {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Button outline success styling */
.btn-outline-success {
  border: 1.5px solid var(--runpe-primary);
  color: var(--runpe-primary);
  background: transparent;
  transition: all 0.3s ease;
}

.btn-outline-success:hover {
  background-color: var(--runpe-primary);
  border-color: var(--runpe-primary);
  color: #ffffff;
}

/* Hero title styling */
.hero-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Form container styling */
.auth-form-container {
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Loading indicator styling */
.btn[data-kt-indicator="on"] .indicator-label {
  display: none;
}

.btn[data-kt-indicator="on"] .indicator-progress {
  display: inline-block;
}

.indicator-progress {
  display: none;
}

/* Form validation styling */
.fv-plugins-message-container .fv-help-block {
  color: #f1416c;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.form-control.is-invalid {
  border-color: #f1416c;
}

/* Alert styling */
.alert-success {
  background-color: rgba(0, 166, 81, 0.1);
  border-color: var(--runpe-primary);
  color: var(--runpe-secondary);
}

.alert-danger {
  background-color: rgba(241, 65, 108, 0.1);
  border-color: #f1416c;
  color: #b02a37;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .auth-login-card {
    margin: 2rem 1rem;
    padding: 2rem !important;
  }

  /* Hide navigation menu on smaller screens */
  .d-none.d-lg-flex {
    display: none !important;
  }

  /* Adjust search bar on mobile */
  .position-relative input {
    width: 200px !important;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 2rem;
    text-align: center !important;
  }

  .auth-login-card {
    margin: 1rem;
    padding: 1.5rem !important;
  }

  .btn-outline-success,
  .btn-success {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }

  /* Stack hero content vertically on mobile */
  .auth-hero-container .row {
    flex-direction: column;
  }

  .auth-hero-container .col-lg-6:first-child {
    order: 2;
    margin-top: 2rem;
  }

  .auth-hero-container .col-lg-6:last-child {
    order: 1;
  }
}

/* Additional styling for better mobile experience */
@media (max-width: 575.98px) {
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-title {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .auth-login-card {
    margin: 0.5rem;
    padding: 1rem !important;
  }

  /* Hide some navigation items on very small screens */
  .btn-outline-success {
    display: none;
  }
}

/* Background image overlay */
.auth-bg-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(22, 59, 47, 0.85) 0%,
    rgba(50, 89, 75, 0.7) 100%
  );
  z-index: 1;
}

.auth-bg-overlay > * {
  position: relative;
  z-index: 2;
}

/* Custom checkbox styling */
.form-check-input:checked {
  background-color: var(--runpe-primary);
  border-color: var(--runpe-primary);
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 166, 81, 0.25);
}

/* Typography improvements */
.fw-bolder {
  font-weight: 700 !important;
}

.text-gray-900 {
  color: #1e2129 !important;
}

.text-gray-500 {
  color: #a1a5b7 !important;
}

.text-gray-700 {
  color: #5e6278 !important;
}
