/**
 * Login page - Theme #1800ad
 * Split layout: left illustration, right blue panel with white form card
 */

:root {
  --login-primary: #1800ad;
  --login-primary-dark: #12007a;
  --login-card-bg: #ffffff;
  --login-left-bg: #ffffff;
  --login-border: #e5e7eb;
  --login-text: #1f2937;
  --login-text-muted: #6b7280;
  --login-radius: 16px;
  --login-radius-pill: 50px;
}

* {
  box-sizing: border-box;
}

body.login-page {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--login-text);
  overflow-x: hidden;
}

.login-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ========== Left: Illustration section (~40%) ========== */
.login-left {
  flex: 0 0 40%;
  max-width: 40%;
  background: var(--login-left-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.login-logo {
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  display: inline-block;
}

.login-logo-img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

.login-illustration {
  max-width: 100%;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.illustration-img {
  max-width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
}

/* ========== Right: Blue panel + form (~60%) ========== */
.login-right {
  flex: 1;
  min-width: 0;
  background: var(--login-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

/* Decorative white arcs - bottom right */
.login-arcs {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80%;
  height: 80%;
  pointer-events: none;
}

.login-arc {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  bottom: -40%;
  right: -30%;
}

.login-arc-1 {
  width: 90%;
  height: 90%;
  min-width: 400px;
  min-height: 400px;
}

.login-arc-2 {
  width: 70%;
  height: 70%;
  min-width: 300px;
  min-height: 300px;
  bottom: -35%;
  right: -25%;
  border-color: rgba(255, 255, 255, 0.1);
}

/* Form container */
.login-form-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
}

.login-card {
  background: var(--login-card-bg);
  border-radius: var(--login-radius);
  padding: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.login-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--login-text);
  margin: 0 0 0.25rem 0;
}

.login-subtitle {
  font-size: 1rem;
  color: var(--login-text-muted);
  margin-bottom: 1.75rem;
}

/* Inputs with icons */
.login-form .input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-form .input-icon {
  position: absolute;
  left: 1rem;
  color: var(--login-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.login-form .input-wrap .form-control {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 3rem;
  border-radius: var(--login-radius-pill);
  border: 1px solid var(--login-border);
  font-size: 1rem;
  background: var(--login-card-bg);
}

.login-form .input-wrap .form-control::placeholder {
  color: var(--login-text-muted);
}

.login-form .input-wrap .form-control:focus {
  border-color: var(--login-primary);
  box-shadow: 0 0 0 3px rgba(24, 0, 173, 0.12);
  outline: none;
}

.login-form .mb-3 {
  margin-bottom: 1rem !important;
}

/* Login button */
.btn-login {
  width: 100%;
  padding: 0.75rem 1.5rem;
  border-radius: var(--login-radius-pill);
  background: var(--login-primary);
  border: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-login:hover {
  background: var(--login-primary-dark);
  color: #fff;
}

.login-forgot {
  display: block;
  font-size: 0.875rem;
  color: var(--login-text);
  text-decoration: none;
  margin-top: 0.25rem;
}

.login-forgot:hover {
  color: var(--login-primary);
  text-decoration: underline;
}

/* Responsive: stack on small screens */
@media (max-width: 992px) {
  .login-wrapper {
    flex-direction: column;
  }

  .login-left {
    flex: 0 0 auto;
    max-width: 100%;
    min-height: 30vh;
    padding-top: 4rem;
  }

  .login-illustration .illustration-img {
    max-height: 25vh;
  }

  .login-right {
    min-height: 70vh;
    padding: 2rem 1.5rem;
  }

  .login-arc-1,
  .login-arc-2 {
    min-width: 250px;
    min-height: 250px;
  }
}

@media (max-width: 576px) {
  .login-card {
    padding: 1.75rem;
  }

  .login-title {
    font-size: 1.5rem;
  }
}
