@import url("https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800&display=swap");

:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --ink: #132033;
  --muted: #637083;
  --line: #dce4ef;
  --brand: #0f4e8b;
  --brand-dark: #0c2d52;
  --brand-soft: #e8f2ff;
  --danger: #bf3d33;
  --focus: #2d7dd2;
  --shadow: 0 18px 45px rgba(15, 35, 58, 0.12);
  --font-sans: "Inter", -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(420px, 1.08fr);
  gap: 18px;
  min-height: 100dvh;
  padding: 18px;
}

.login-brand {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: calc(100dvh - 36px);
  padding: 34px;
  color: #ffffff;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 100%),
    linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 78%);
  background-size: 100% 100%, auto;
  border: 1px solid rgba(11, 44, 79, 0.18);
  border-radius: 10px;
  overflow: hidden;
}

.login-brand-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  align-content: space-between;
  gap: 28px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-name {
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-copy {
  display: grid;
  gap: 16px;
  max-width: 560px;
}

.brand-eyebrow {
  display: inline-flex;
  width: fit-content;
  color: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  opacity: 0.72;
}

.brand-copy h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0;
}

.brand-copy p {
  margin: 0;
  max-width: 500px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 16px;
  line-height: 1.65;
}

.portfolio-panel {
  display: grid;
  gap: 14px;
  max-width: 540px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.portfolio-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.portfolio-panel-head span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.portfolio-panel-head strong {
  color: #ffffff;
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}

.portfolio-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.55;
}

.brand-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.brand-stat {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.brand-stat strong {
  display: block;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.brand-stat span {
  display: block;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: 0;
}

.login-main {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 40px 28px;
  background: var(--bg);
}

.login-card {
  width: min(100%, 440px);
  display: grid;
  gap: 30px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.login-head {
  display: grid;
  gap: 11px;
}

.login-head .brand-eyebrow {
  color: var(--brand);
  opacity: 1;
}

.login-head h1 {
  margin: 0;
  color: var(--ink);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

.login-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

form {
  display: grid;
  gap: 15px;
}

.field {
  display: grid;
  gap: 7px;
}

label {
  display: block;
  color: #26364d;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

input,
button {
  font: inherit;
  -webkit-font-smoothing: antialiased;
}

input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  color: var(--ink);
  font-size: 14px;
  border: 1px solid #cfd9e6;
  border-radius: 8px;
  background: #fbfdff;
  outline: none;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

input:hover {
  border-color: #aebed0;
  background: #ffffff;
}

input:focus {
  border-color: var(--focus);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(45, 125, 210, 0.12);
}

input::placeholder {
  color: #9aa7b7;
}

button {
  width: 100%;
  min-height: 46px;
  margin-top: 2px;
  padding: 12px 16px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  border: 1px solid var(--brand);
  border-radius: 8px;
  background: var(--brand);
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(15, 78, 139, 0.18);
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.14s ease, box-shadow 0.14s ease;
}

button:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 78, 139, 0.22);
}

button:active {
  transform: translateY(0);
  box-shadow: 0 7px 18px rgba(15, 78, 139, 0.18);
}

button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.error {
  min-height: 18px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

@media (max-width: 920px) {
  .login-shell {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .login-brand {
    min-height: auto;
    padding: 24px;
  }

  .login-brand-inner {
    align-content: start;
  }

  .brand-copy h1 {
    font-size: 36px;
    line-height: 1.02;
  }

  .login-main {
    padding: 20px 0 0;
  }
}

@media (max-width: 620px) {
  .login-shell {
    gap: 12px;
  }

  .login-brand {
    padding: 20px;
  }

  .brand-copy h1 {
    font-size: 30px;
  }

  .brand-copy p,
  .portfolio-panel {
    display: none;
  }

  .brand-stats {
    grid-template-columns: 1fr;
  }

  .login-card {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
