/**
 * Lenovo 360 branded login screen — matches Marketing Accelerator mockup.
 */

.lenovo360-login {
  --l360-font: 'Montserrat', system-ui, sans-serif;
  --l360-white: #ffffff;
  --l360-input-bg: rgba(232, 220, 228, 0.55);
  --l360-input-border: rgba(255, 255, 255, 0.95);

  margin: 0;
  min-height: 100vh;
  font-family: var(--l360-font);
  color: var(--l360-white);
  background: #2a0f2e;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  position: relative;
  overflow-x: hidden;
}

.lenovo360-login *,
.lenovo360-login *::before,
.lenovo360-login *::after {
  box-sizing: border-box;
}

.lenovo360-login__bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: #2a0f2e;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
}

.lenovo360-login__site-header {
  position: relative;
  z-index: 2;
  width: 100%;
  flex-shrink: 0;
}

.lenovo360-login__site-header .brxe-section,
.lenovo360-login__site-header .bricks-section,
.lenovo360-login__site-header > * {
  width: 100%;
}

.lenovo360-login__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  margin-top: auto;
  margin-bottom: auto;
  padding: 2rem clamp(1.5rem, 6vw, 5rem) 3rem;
  animation: lenovo360-login-enter 0.5s ease-out both;
  text-align: center;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
}

@keyframes lenovo360-login-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lenovo360-login__brand {
  margin-bottom: clamp(2rem, 4vh, 2.75rem);
}

.lenovo360-login__welcome {
  margin: 0 0 0.35rem;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--l360-white);
}

.lenovo360-login__title {
  margin: 0;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--l360-white);
}

.lenovo360-login__alert {
  margin-bottom: 1.25rem;
  padding: 0.75rem 0.875rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--l360-white);
  font-size: 0.875rem;
  line-height: 1.45;
}

.lenovo360-login__alert a {
  color: var(--l360-white);
  font-weight: 600;
  text-decoration: underline;
}

.lenovo360-login__form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
}

.lenovo360-login__label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--l360-white);
  margin-bottom: 0.55rem;
}

.lenovo360-login__input {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  padding: 0.85rem 1.15rem;
  border: 1.5px solid var(--l360-input-border);
  border-radius: 8px !important;
  background: var(--l360-input-bg);
  color: #1a1a1a !important;
  -webkit-text-fill-color: #1a1a1a;
  caret-color: #1a1a1a;
  margin-bottom: 1.35rem;
  outline: none;
  transition: box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.lenovo360-login__input::placeholder {
  color: #666666;
  -webkit-text-fill-color: #666666;
  opacity: 1;
}

.lenovo360-login__input:focus {
  background: rgba(245, 236, 242, 0.85);
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
  color: #1a1a1a !important;
  -webkit-text-fill-color: #1a1a1a;
}

.lenovo360-login__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0.15rem 0 1.5rem;
}

.lenovo360-login__remember {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--l360-white);
  cursor: pointer;
  user-select: none;
}

.lenovo360-login__remember input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 20px;
  height: 24px;
  margin: 0;
  border: 1.5px solid #ffffff !important;
  border-radius: 3px;
  background: transparent !important;
  box-shadow: none;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-grid;
  place-content: center;
  accent-color: #ffffff;
}

.lenovo360-login__remember input[type="checkbox"]:checked {
  border-color: #ffffff !important;
  background: transparent !important;
}

.lenovo360-login__remember input[type="checkbox"]:checked::before {
  content: '';
  width: 6px;
  height: 11px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
  background: none;
  border-radius: 0;
}

.lenovo360-login__remember input[type="checkbox"]:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.lenovo360-login__forgot {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--l360-white);
  text-decoration: none;
  white-space: nowrap;
}

.lenovo360-login__forgot:hover {
  text-decoration: underline;
}

.lenovo360-login__form .bricks-button.block {
  width: 100%;
  justify-content: center;
  cursor: pointer;
  margin-top: 0.25rem;
  color: #f1e1ed !important;
  background: transparent !important;
  background-color: transparent !important;
  border: 1px solid #f1e1ed !important;
  border-color: #f1e1ed !important;
  border-radius: 8px !important;
}

.lenovo360-login__form .bricks-button.block:hover {
  color: #2a1528 !important;
  background: #f1e1ed !important;
  background-color: #f1e1ed !important;
  border-color: #f1e1ed !important;
}

.lenovo360-login__powered {
  position: fixed;
  right: clamp(1.25rem, 4vw, 2.5rem);
  bottom: clamp(1.25rem, 4vw, 2.25rem);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  pointer-events: none;
}

.lenovo360-login__powered-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.01em;
}

.lenovo360-login__powered-logo {
  display: block;
  width: min(149px, 38vw);
  height: auto;
  filter: brightness(0) invert(1);
}

.bricks-button {
  font-size: var(--font-size-sm);
  font-family: "Montserrat";
  font-weight: 700;
  line-height: 1;
  padding-top: 16px;
  padding-right: 32px;
  padding-bottom: 16px;
  padding-left: 32px;
  border: 1px solid rgba(0, 0, 0, 0);
  border-radius: 8px;
}

@media (max-width: 640px) {
  .lenovo360-login__content {
    max-width: none;
    padding: 2.5rem 1.35rem 6.5rem;
  }

  .lenovo360-login__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .lenovo360-login__powered {
    right: 1.25rem;
    bottom: 1.25rem;
  }
}
