/* Metronic Demo1–style authentication (split corporate layout) */

.auth-page {
  margin: 0;
  overflow-x: hidden;
}

.auth-split {
  min-height: 100vh;
}

/* Left panel — Demo1 dark aside */
.auth-aside-pad {
  padding: 2rem 1.5rem;
}

@media (min-width: 992px) {
  .auth-aside-pad {
    padding: 4rem 3.5rem;
  }
}

.auth-aside {
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  background-color: #1e1e2d;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0, 158, 247, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(114, 57, 234, 0.12) 0%, transparent 40%),
    linear-gradient(160deg, #1e1e2d 0%, #151521 45%, #1b1b29 100%);
  position: relative;
}

.auth-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.9;
  pointer-events: none;
}

.auth-aside-inner {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
}

.auth-aside .brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 0.475rem;
  background: rgba(0, 158, 247, 0.2);
  color: #009ef7;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.auth-aside h1 {
  color: #fff;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.auth-aside .lead-aside {
  color: #a1a5b7;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-top: 1rem;
}

.auth-aside .aside-foot {
  margin-top: auto;
  padding-top: 3rem;
  color: #565674;
  font-size: 0.8rem;
}

/* Right panel — form */
.auth-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  padding: 2.5rem 1.5rem;
  width: 100%;
}

@media (min-width: 992px) {
  .auth-main {
    flex: 0 0 50%;
    max-width: 720px;
    min-width: 480px;
    padding: 3rem 4rem;
    box-shadow: -12px 0 40px rgba(24, 28, 50, 0.06);
  }
}

.auth-form-wrap {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.auth-form-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #181c32;
  letter-spacing: -0.02em;
}

.auth-form-sub {
  color: #a1a5b7;
  font-size: 0.95rem;
  margin-top: 0.35rem;
  margin-bottom: 2rem;
}

.auth-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #3f4254;
  margin-bottom: 0.35rem;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-wrap .auth-input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #a1a5b7;
  font-size: 1rem;
  z-index: 2;
  pointer-events: none;
}

.auth-input-wrap .form-control {
  padding-left: 2.75rem;
  min-height: 48px;
  border-radius: 0.475rem;
  border: 1px solid #e4e6ef;
  font-size: 0.95rem;
}

.auth-input-wrap .form-control:focus {
  border-color: #009ef7;
  box-shadow: 0 0 0 0.2rem rgba(0, 158, 247, 0.12);
}

.auth-divider {
  display: flex;
  align-items: center;
  color: #a1a5b7;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 1.75rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #eff2f5;
}

.auth-divider span {
  padding: 0 1rem;
}

.btn-auth-primary {
  min-height: 48px;
  font-weight: 600;
  border-radius: 0.475rem;
  background: #009ef7;
  border: none;
  box-shadow: 0 8px 16px rgba(0, 158, 247, 0.25);
}

.btn-auth-primary:hover {
  background: #0095e8;
  box-shadow: 0 8px 20px rgba(0, 158, 247, 0.35);
}

.auth-link {
  color: #009ef7;
 font-weight: 600;
  text-decoration: none;
  font-size: 0.875rem;
}

.auth-link:hover {
  color: #0095e8;
  text-decoration: underline;
}

.auth-footer-links {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed #eff2f5;
}

.auth-footer-links p {
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  color: #7e8299;
}

.btn-external {
  border: 1px solid #e4e6ef;
  background: #f9f9f9;
  color: #3f4254;
  font-weight: 600;
  border-radius: 0.475rem;
  padding: 0.5rem 1rem;
}

.btn-external:hover {
  background: #f1f1f2;
  border-color: #dcdfe5;
}

.btn-external-google {
  background: #fff;
  border-color: #dadce0;
  color: #3c4043;
  font-weight: 500;
}

.btn-external-google:hover {
  background: #f8f9fa;
  border-color: #dadce0;
  color: #3c4043;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.15);
}

.btn-external-google .bi-google {
  font-size: 1.1rem;
  color: #4285f4;
}

/* Sign in with Apple — dark control (close to Apple HIG) */
.btn-external-apple {
  background: #000;
  border-color: #000;
  color: #fff;
  font-weight: 500;
}

.btn-external-apple:hover {
  background: #1c1c1e;
  border-color: #1c1c1e;
  color: #fff;
}

.btn-external-apple .bi-apple {
  font-size: 1.15rem;
}

@media (max-width: 991.98px) {
  .auth-aside {
    min-height: auto;
    padding: 2rem 1.5rem !important;
  }

  .auth-aside .aside-foot {
    display: none;
  }
}
