.aiva-auth,
.aiva-auth * {
  box-sizing: border-box;
}

.aiva-auth {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  display: block !important;
  background: #f4f4f4 !important;
  background-image: none !important;
  color: #222;
  min-height: 100vh;
}

.aiva-auth .aiva-skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(14, 23, 38, 0.1);
  z-index: 9999;
  text-decoration: none;
  color: inherit;
}
.aiva-auth .aiva-skip-link:focus {
  left: 8px;
  outline: none;
}

.aiva-auth .aiva-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 61.5% 38.5%;
  background: #fff;
}

.aiva-auth .aiva-hero {
  position: relative;
  overflow: hidden;
  background: url("../img/aiva-auth/login_background_image.png") left center / cover no-repeat;
}
.aiva-auth .aiva-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.55));
}

.aiva-auth .aiva-auth-panel {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 36px;
  position: relative;
}

.aiva-auth .aiva-auth-card {
  width: 100%;
  max-width: 430px;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.aiva-auth .aiva-brand {
  text-align: center;
  margin-bottom: 36px;
}

.aiva-auth .aiva-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.aiva-auth .aiva-logo-img {
  display: block;
  object-fit: contain;
}
.aiva-auth .aiva-logo-img.moe-logo {
  height: 44px;
  width: auto;
}
.aiva-auth .aiva-logo-img.madani-logo {
  height: 46px;
  width: auto;
}

.aiva-auth .aiva-brand h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 500;
  color: #333;
}

.aiva-auth .aiva-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.aiva-auth .aiva-form-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #111;
}

.aiva-auth .aiva-field {
  margin-bottom: 12px;
}
.aiva-auth .aiva-field label {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 500;
  color: #7d7d7d;
}

.aiva-auth .aiva-input {
  width: 100%;
  height: 54px;
  border: 1px solid #d7d7d7;
  border-radius: 10px;
  background: #efefef;
  padding: 0 20px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.aiva-auth .aiva-input:focus {
  background: #fff;
  border-color: #2f89df;
  box-shadow: 0 0 0 4px rgba(47, 137, 223, 0.1);
}
.aiva-auth .aiva-input::placeholder {
  color: #b1b1b1;
}

.aiva-auth .aiva-password-row {
  text-align: right;
  margin: 8px 0 28px;
}

.aiva-auth .aiva-link {
  color: #2f89df;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.aiva-auth .aiva-link:hover {
  text-decoration: underline;
}

.aiva-auth .aiva-submit-btn {
  width: 100%;
  height: 56px;
  border: none;
  border-radius: 10px;
  background: #2f89df;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 8px 18px rgba(47, 137, 223, 0.2);
}
.aiva-auth .aiva-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(47, 137, 223, 0.24);
}
.aiva-auth .aiva-submit-btn:active {
  transform: translateY(0);
}

.aiva-auth .aiva-signup {
  text-align: center;
  color: #8f8f8f;
  margin-top: 34px;
  font-size: 15px;
}

.aiva-auth .aiva-footer {
  margin-top: auto;
  text-align: center;
  padding-top: 40px;
  color: #9a9a9a;
}
.aiva-auth .aiva-footer strong {
  display: block;
  color: #181818;
  font-size: 16px;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}
.aiva-auth .aiva-footer small {
  font-size: 13px;
}

.aiva-auth .aiva-status {
  min-height: 20px;
  margin-top: 12px;
  font-size: 13px;
  color: #c0392b;
}
.aiva-auth .aiva-status.success {
  color: #1e874b;
}

/* Register/Forms helpers */
.aiva-auth .aiva-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin: 6px 0 10px;
}

.aiva-auth .aiva-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.aiva-auth .aiva-note {
  font-size: 13px;
  color: #666;
  margin: 6px 0 0;
}

@media (max-width: 1100px) {
  .aiva-auth .aiva-page {
    grid-template-columns: 1fr;
  }
  .aiva-auth .aiva-hero {
    min-height: 300px;
    background-position: center center;
  }
  .aiva-auth .aiva-auth-card {
    min-height: auto;
    padding: 20px 0;
  }
}

@media (max-width: 640px) {
  .aiva-auth .aiva-auth-panel {
    padding: 22px 20px 30px;
  }
  .aiva-auth .aiva-form-head h2 {
    font-size: 22px;
  }
  .aiva-auth .aiva-brand h1 {
    font-size: 18px;
  }
  .aiva-auth .aiva-input,
  .aiva-auth .aiva-submit-btn {
    height: 50px;
  }
  .aiva-auth .aiva-logos {
    gap: 8px;
  }
  .aiva-auth .aiva-logo-img.moe-logo {
    height: 38px;
  }
  .aiva-auth .aiva-logo-img.madani-logo {
    height: 40px;
  }
  .aiva-auth .aiva-grid-2 {
    grid-template-columns: 1fr;
  }
}
