@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");
@import url("https://fonts.googleapis.com/css?family=Lato");
:root {
  --page-bg: #020b14;
  --panel-bg: #06111e;
  --panel-bg-2: #071625;
  --text: #f6fbff;
  --muted: #91a0b3;
  --muted-2: #6f7f93;
  --line: rgba(255, 255, 255, 0.115);
  --line-strong: rgba(255, 255, 255, 0.17);
  --blue: #078cff;
  --cyan: #00baff;
  --radius: 18px;
  --outer-radius: 24px;
  --shadow: 0 36px 110px rgba(0, 0, 0, 0.52);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  overflow-y: hidden;
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 28% 22%, rgba(0, 161, 255, 0.16), transparent 34%),
    radial-gradient(circle at 82% 48%, rgba(0, 115, 255, 0.10), transparent 38%),
    linear-gradient(135deg, #020914 0%, #05101d 46%, #020810 100%);
}

.login-shell {
  width: min(1480px, 100%);
  min-height: min(900px, calc(100vh - 92px));
  display: grid;
  grid-template-columns: 53.6% 46.4%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--outer-radius);
  background: rgba(4, 14, 25, 0.92);
  box-shadow: var(--shadow);
}

.visual-panel {
  min-height: 760px;
  position: relative;
  background-image: url("assets/hero-smart-sense.jpg");
  background-size: cover;
  background-position: center;
  border-right: 1px solid rgba(255, 255, 255, 0.075);
}

.visual-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 9, 17, 0.05), rgba(2, 9, 17, 0.18)),
    radial-gradient(circle at 70% 52%, rgba(0, 186, 255, 0.05), transparent 34%);
}

.login-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 118px 88px 46px;
  background:
    radial-gradient(circle at 48% 42%, rgba(7, 140, 255, 0.08), transparent 32%),
    linear-gradient(180deg, #071523 0%, #06111e 100%);
}

.login-card {
  width: min(500px, 100%);
  margin: auto;
}

.login-header {
  margin-bottom: 44px;
}

.login-header h1 {
  margin: 0 0 14px;
  font-size: clamp(31px, 3vw, 40px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.login-header p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.field {
  margin-bottom: 30px;
}

.field label {
  display: block;
  margin-bottom: 13px;
  color: rgba(255, 255, 255, 0.91);
  font-size: 16px;
  font-weight: 600;
}

.input-box {
  position: relative;
  display: flex;
  align-items: center;
}

.input-box > svg,
.password-toggle svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.input-box > svg {
  position: absolute;
  left: 20px;
  color: rgba(255, 255, 255, 0.62);
  pointer-events: none;
}

.input-box input {
  width: 100%;
  height: 64px;
  padding: 0 58px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  outline: none;
  color: var(--text);
  background: rgba(0, 7, 14, 0.32);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  font: inherit;
  font-size: 16px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.input-box input::placeholder {
  color: rgba(145, 160, 179, 0.75);
}

.input-box input:focus {
  border-color: rgba(0, 186, 255, 0.65);
  background: rgba(2, 13, 24, 0.72);
  box-shadow: 0 0 0 4px rgba(0, 186, 255, 0.10);
}

.password-toggle {
  position: absolute;
  right: 17px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.66);
  background: transparent;
  cursor: pointer;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 6px 0 44px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  user-select: none;
  cursor: pointer;
}

.remember input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.remember span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 2px solid var(--cyan);
  border-radius: 4px;
  background: rgba(0, 186, 255, 0.04);
}

.remember span::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg) scale(0);
  transition: transform 160ms ease;
}

.remember input:checked + span::after {
  transform: rotate(-45deg) scale(1);
}

.login-options a {
  color: var(--cyan);
  text-decoration: none;
  white-space: nowrap;
}

.login-options a:hover {
  color: #78dcff;
}

.submit-btn {
  width: 100%;
  height: 65px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  border-radius: 9px;
  color: white;
  background: linear-gradient(135deg, #057cff 0%, #08b7ff 100%);
  box-shadow: 0 20px 48px rgba(0, 137, 255, 0.27);
  font: inherit;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.submit-btn svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.submit-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 25px 58px rgba(0, 137, 255, 0.36);
}

.funkcje-btn {
  width: 110px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  border-radius: 9px;
  color: white;
  background: linear-gradient(135deg, #057cff 0%, #08b7ff 100%);
  box-shadow: 0 20px 48px rgba(0, 137, 255, 0.27);
  font: inherit;
  font-size: 14px;
  font-weight: 300;
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.funkcje-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.funkcje-btn:hover {
  filter: brightness(1.2);
  box-shadow: 0 15px 38px rgba(0, 137, 255, 0.36);
}

.login-footer {
  width: min(500px, 100%);
  margin: 102px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
}

.language {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.76);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.language svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.language .chevron {
  width: 15px;
  height: 15px;
}

@media (max-width: 1120px) {
  body {
    overflow-y: auto;
    padding: 20px;
  }

  .login-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .visual-panel {
    min-height: 520px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  }

  .login-panel {
    padding: 64px 36px 38px;
  }

  .login-footer {
    margin-top: 64px;
  }
}

@media (max-width: 620px) {
  body {
    overflow-y: auto;
    padding: 0;
    display: block;
  }

  .login-shell {
    width: 100%;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .visual-panel {
    min-height: 340px;
  }

  .login-panel {
    padding: 42px 22px 28px;
  }

  .login-header {
    margin-bottom: 34px;
  }

  .login-header p {
    font-size: 16px;
  }

  .input-box input,
  .submit-btn {
    height: 60px;
  }

  .login-options,
  .login-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
