/* login.module.css */

.body {
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
}
/* Container */
.container-login {
  min-height: 100vh;
  display: flex;
}

/* Left Section - Construction Image */
.leftSection {
  display: none;
  width: 30%;
  position: relative;
  background-color: #ffffff;
}

.imageWrapper {
  position: absolute;
  inset: 0;
}

.logoImage {
  width: 30% !important;
}
.bgImage {
  object-fit: cover;
  border-radius: 0 15% 15% 0;
  box-shadow: 0 29px 40px rgba(142, 87, 87, 0.15),
    0 15px 35px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.leftContent {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  color: #ffffff;
  z-index: 10;
}

.err-text {
  display: none;
}

.heroText {
  margin-bottom: 2rem;
}

.heroTitle {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.heroSubtitle {
  font-size: 1.125rem;
  color: #ffffff;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.featureCard {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  padding: 1rem;
  border-radius: 0.5rem;
}

.featureIcon {
  width: 3rem;
  height: 3rem;
  background-color: #2563eb;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
}

.featureTitle {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.featureDesc {
  font-size: 0.875rem;
  color: #ffffff;
}

/* Right Section - Login Form */
.rightSection {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-color: #ffffff;
}

.formWrapper {
  width: 100%;
  max-width: 28rem;
}

/* Logo */
.logoSection {
  text-align: center;
  margin-bottom: 2rem;
}

.logoIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  margin-bottom: 1rem;
}

.logo {
  width: 100%;
  height: 100%;
}
.logoex {
  color: #245187;
}

.brandName {
  font-size: 1.875rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 0.5rem;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

/* Login Card */
.loginCard {
  background-color: #ffffff;
  border-radius: 5px;
  box-shadow: 0px 2px 25px -2px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  padding: 2rem;
}

.loginTitle {
  font-size: 30px;
  font-weight: 900;
  text-align: center;
  color: #245187;
  margin-bottom: 0.5rem;
  font-family: "Montserrat";
}
.loginSubtitle1 {
  text-align: center;
  color: #245187;
  font-family: "Montserrat";
  font-weight: 900;
  line-height: 0.5;
}
.loginSubtitle {
  text-align: center;
  color: #4b5563;
  margin-bottom: 2rem;
  line-height: 1.5;
  font-family: "Montserrat";
}

.smallText {
  font-size: 0.875rem;
}

/* Input Group */
.inputGroup {
  margin-bottom: 1.5rem;
}

.inputGroup {
  display: flex;
  justify-content: center;
  align-items: center;
}

.inputWrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.form-input {
  padding: 12px;
  width: 250px;
  border: 1px solid #8b9093;
  border-radius: 10px !important;
}
.form-input :active {
  border: 1px solid #8b9093 !important;
}

.label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.inputWrapper {
  position: relative;
}

.countryCode {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  font-weight: 500;
}

.input {
  width: 100%;
  padding: 1rem 1rem 1rem 4rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 1rem;
  color: #1f2937;
  transition: all 0.2s;
}

.input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.otpInput {
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: 0.5rem;
  font-weight: 600;
  padding-left: 1rem;
}

.errorText {
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 0.25rem;
}

.textCenter {
  text-align: center;
}

/* Buttons */
.button {
  width: 100%;
  padding: 1rem;
  font-weight: 600;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.primaryButton {
  width: 40%;
  display: block;
  margin: 0 auto;
  background: linear-gradient(90deg, #2c4060, #245187);
  color: white;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
}

.primaryButton:hover:not(:disabled) {
  background-color: #1e40af;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.primaryButton:active:not(:disabled) {
  transform: scale(0.98);
}

.marginBottom {
  margin-bottom: 1rem;
}

.buttonContent {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Montserrat";
  font-size: 14px;
}

.logo-img {
  width: 50%;
}
.spinner {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 0.75rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.linkButton {
  background: none;
  border: none;
  color: #2563eb;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0.25rem 0.5rem;
}

.linkButton:hover {
  color: #1e40af;
  text-decoration: underline;
}

.secondaryLink {
  color: #4b5563;
}

.secondaryLink:hover {
  color: #1f2937;
}

.separator {
  margin: 0 0.5rem;
  color: #9ca3af;
}

/* Terms */
.terms {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.termsText {
  font-size: 0.875rem;
  color: #4b5563;
}

.link {
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.link:hover {
  color: #1e40af;
  text-decoration: underline;
}

/* Footer */
.footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
}

/* Responsive Design */
@media (min-width: 1024px) {
  .leftSection {
    display: block;
    width: 100%;
    /* margin-right: 75%; */
    margin-left: -25%;
  }

  .rightSection {
    width: 50%;
  }
}

@media (max-width: 640px) {
  .rightSection {
    padding: 1rem;
  }

  .loginCard {
    padding: 1.5rem;
  }

  .heroTitle {
    font-size: 2rem;
  }
}
@media (min-width: 1440px) {
  .bgImage {
    object-fit: cover;
    border-radius: 0 5% 5% 0;
    box-shadow: 0 29px 40px rgba(142, 87, 87, 0.15),
      0 15px 35px rgba(0, 0, 0, 0.1);
    margin-right: 20%;
    width: 100%;
    height: 100%;
  }
}
