* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: #f4f6f8;
  color: #111827;
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
}

/* -------------------------------------------
   LEFT / BRAND PANEL
------------------------------------------- */

.login-brand-panel {
  position: relative;
  overflow: hidden;
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.08), transparent 32%), radial-gradient(circle at 80% 80%, rgba(255,255,255,0.06), transparent 30%), linear-gradient(145deg, #101820 0%, #17232d 45%, #0c1218 100%);
  color: #ffffff;
}

  .login-brand-panel::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    right: -260px;
    top: -180px;
  }

  .login-brand-panel::after {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    left: -180px;
    bottom: -180px;
  }

.brand-top,
.brand-content,
.brand-footer {
  position: relative;
  z-index: 2;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -1px;
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.brand-product {
  margin-top: 2px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.brand-content {
  max-width: 650px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  margin-bottom: 24px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}

.brand-title {
  margin: 0;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -3px;
}

  .brand-title span {
    color: rgba(255, 255, 255, 0.55);
  }

.brand-description {
  max-width: 570px;
  margin-top: 26px;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
}

.brand-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
  max-width: 520px;
}

.brand-feature {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

  .brand-feature strong {
    color: #ffffff;
    display: block;
    margin-bottom: 2px;
  }

.brand-footer {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
}

/* -------------------------------------------
   RIGHT / LOGIN
------------------------------------------- */

.login-form-panel {
  min-height: 100vh;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f8fa;
}

.login-container {
  width: 100%;
  max-width: 430px;
}

.mobile-brand {
  display: none;
  margin-bottom: 40px;
}

.login-header {
  margin-bottom: 32px;
}

  .login-header h1 {
    margin: 0;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -1px;
    color: #111827;
  }

  .login-header p {
    margin: 10px 0 0;
    color: #737b87;
    font-size: 14px;
    line-height: 1.6;
  }

.validation-summary-errors {
  padding: 13px 15px;
  margin-bottom: 20px;
  border-radius: 10px;
  background: #fff2f2;
  border: 1px solid #ffd8d8;
  color: #b42318;
  font-size: 13px;
}

  .validation-summary-errors ul {
    padding: 0;
    margin: 0;
    list-style: none;
  }

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  color: #303641;
  font-size: 13px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1px solid #d9dde3;
  border-radius: 10px;
  background: #ffffff;
  color: #111827;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

  .form-control:hover {
    border-color: #b8bec7;
  }

  .form-control:focus {
    border-color: #151c23;
    box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.06);
  }

  .form-control::placeholder {
    color: #a6adb7;
  }

.field-validation-error {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #b42318;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 2px 0 24px;
}

.remember-option {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #656d78;
  font-size: 13px;
  cursor: pointer;
}

  .remember-option input {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #111820;
  }

.forgot-password {
  color: #383f49;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

  .forgot-password:hover {
    text-decoration: underline;
  }

.login-button {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 10px;
  background: #111820;
  color: #ffffff;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

  .login-button:hover {
    background: #202b35;
    box-shadow: 0 8px 22px rgba(17, 24, 32, 0.16);
    transform: translateY(-1px);
  }

  .login-button:active {
    transform: translateY(0);
  }

.login-help {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid #e4e7eb;
  text-align: center;
  color: #8b929c;
  font-size: 12px;
  line-height: 1.6;
}

  .login-help strong {
    color: #555d68;
    font-weight: 600;
  }

/* -------------------------------------------
   RESPONSIVE
------------------------------------------- */

@media (max-width: 950px) {
  .login-page {
    display: block;
  }

  .login-brand-panel {
    display: none;
  }

  .login-form-panel {
    padding: 30px 20px;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 12px;
  }

    .mobile-brand .brand-mark {
      background: #111820;
      color: white;
    }

    .mobile-brand .brand-name {
      color: #111827;
    }

    .mobile-brand .brand-product {
      color: #8b929c;
    }
}

@media (max-width: 480px) {
  .login-form-panel {
    align-items: flex-start;
    padding-top: 50px;
  }

  .login-header h1 {
    font-size: 28px;
  }

  .login-options {
    align-items: flex-start;
    flex-direction: column;
  }
}
