/* Login Page v2 - Asymmetric Split (March 2026)
   Canonical palette: navy #122b50, deep navy #052036, sky #03c0f9,
   turquoise #00d4b3, coral #ff5669, orange #ed8d1d */

.login-v2 {
  display: flex;
  min-height: calc(100vh - 50px);
  margin-top: -20px;
}

/* ===== LEFT BRAND PANEL ===== */
.login-v2__brand {
  width: 42%;
  background: #122b50;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 48px;
  overflow: hidden;
}

.login-v2__shape-1 {
  position: absolute;
  top: -80px;
  right: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 40px solid rgba(3,192,249,0.07);
  pointer-events: none;
}

.login-v2__shape-2 {
  position: absolute;
  bottom: 60px;
  left: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,86,105,0.06);
  pointer-events: none;
}

.login-v2__shape-3 {
  position: absolute;
  bottom: -30px;
  right: 40px;
  width: 120px;
  height: 120px;
  border-radius: 24px;
  border: 3px solid rgba(0,212,179,0.15);
  transform: rotate(30deg);
  pointer-events: none;
}

.login-v2__brand-heading {
  font-family: 'OpenSans-SemiBold', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.login-v2__brand-heading em {
  color: #00d4b3;
  font-style: italic;
}

.login-v2__brand-desc {
  color: rgba(255,255,255,0.45);
  font-family: 'OpenSans-Regular', sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
  position: relative;
  z-index: 2;
}

.login-v2__features {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 2;
  list-style: none;
  padding: 0;
}

.login-v2__feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.5);
  font-family: 'OpenSans-Regular', sans-serif;
  font-size: 0.85rem;
}

.login-v2__feature-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===== RIGHT FORM SIDE ===== */
.login-v2__form-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: #f9fdff;
}

.login-v2__form-container {
  width: 100%;
  max-width: 380px;
}

.login-v2__logo {
  width: 120px;
  height: auto;
  margin-bottom: 28px;
}

.login-v2__form-title {
  font-family: 'OpenSans-SemiBold', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #052036;
  margin-bottom: 6px;
}

.login-v2__form-subtitle {
  color: #718391;
  font-family: 'OpenSans-Regular', sans-serif;
  font-size: 0.88rem;
  margin-bottom: 32px;
}

/* Form field overrides */
.login-v2__form-container .form-group {
  margin: 0 0 20px 0;
}

.login-v2__form-container .form-group label {
  display: block;
  font-family: 'OpenSans-Regular', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #718391;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.login-v2__form-container .form-group .form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #e8edf2;
  border-radius: 8px;
  font-family: 'OpenSans-Regular', sans-serif;
  font-size: 0.9rem;
  color: #052036;
  outline: none;
  transition: border-color 0.2s;
  background: #fff;
  opacity: 1;
  text-align: left;
  height: auto;
}

.login-v2__form-container .form-group .form-control:focus {
  border-color: #03c0f9;
}

.login-v2__form-container .form-group .form-control::placeholder {
  color: #949ea5;
}

/* Error states */
.login-v2__form-container .has-error .form-control {
  border-color: #ff5669;
}

.login-v2__form-container .has-error .field-error {
  font-family: 'OpenSans-Regular', sans-serif;
  font-size: 0.8rem;
  color: #ff5669;
  margin-top: 6px;
}

/* Login button */
.login-v2__btn {
  width: 100%;
  padding: 14px;
  background: #ff5669;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'OpenSans-SemiBold', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  margin-top: 4px;
}

.login-v2__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,86,105,0.3);
}

/* Divider */
.login-v2__divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: #949ea5;
  font-family: 'OpenSans-Regular', sans-serif;
  font-size: 0.8rem;
}

.login-v2__divider::before,
.login-v2__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e8edf2;
}

/* OAuth button */
.login-v2__oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px;
  border: 1.5px solid #e8edf2;
  border-radius: 8px;
  background: #fff;
  font-family: 'OpenSans-Regular', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: #374c5e;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}

.login-v2__oauth-btn:hover {
  border-color: #03c0f9;
  background: #f9fdff;
  text-decoration: none;
  color: #374c5e;
}

.login-v2__oauth-btn svg {
  margin-right: 10px;
  flex-shrink: 0;
}

/* Bottom links */
.login-v2__links {
  text-align: center;
  margin-top: 28px;
  font-family: 'OpenSans-Regular', sans-serif;
  font-size: 0.85rem;
  color: #718391;
}

.login-v2__links a {
  color: #ff5669;
  text-decoration: none;
  font-weight: 600;
}

.login-v2__links a:hover {
  text-decoration: underline;
}

.login-v2__forgot {
  display: block;
  margin-top: 16px;
}

.login-v2__forgot a {
  color: #949ea5 !important;
  font-weight: 400 !important;
  font-size: 0.82rem;
}

/* Flash messages */
.login-v2__form-container .alert {
  border-radius: 8px;
  font-family: 'OpenSans-Regular', sans-serif;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

/* ===== RESPONSIVE ===== */
@media only screen and (max-width: 900px) {
  .login-v2 {
    flex-direction: column;
  }

  .login-v2__brand {
    width: 100%;
    padding: 40px 28px;
    min-height: auto;
  }

  .login-v2__brand-heading {
    font-size: 1.5rem;
  }

  .login-v2__features {
    margin-top: 24px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  .login-v2__form-side {
    padding: 32px 24px;
  }

  .login-v2__form-container {
    max-width: 100%;
  }
}

@media only screen and (max-width: 480px) {
  .login-v2__brand {
    padding: 32px 20px;
  }

  .login-v2__brand-heading {
    font-size: 1.3rem;
  }

  .login-v2__brand-desc {
    font-size: 0.82rem;
  }

  .login-v2__features {
    flex-direction: column;
  }

  .login-v2__form-side {
    padding: 24px 20px;
  }

  .login-v2__form-title {
    font-size: 1.3rem;
  }
}
