@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('https://hafenwind.media/wp-content/themes/hafenwind-media/assets/fonts/montserrat-latin-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('../fonts/material-symbols-outlined.woff2') format('woff2');
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 16px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  vertical-align: middle;
  user-select: none;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

:root {
  --blue:      #0057D9;
  --blue-dark: #00399c;
  --ink:       #111827;
  --ink-2:     #374151;
  --ink-3:     #6b7280;
  --line:      #e5e7eb;
  --bg:        #f3f4f6;
  --white:     #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: 'Montserrat', system-ui, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  background: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* ── Two-column layout ────────────────────────────────────────────────────── */
.login-page {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100dvh;
}

/* ── Left: Brand panel ────────────────────────────────────────────────────── */
.brand-panel {
  background: #0a1628;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 52px 56px;
  position: relative;
  overflow: hidden;
}

.brand-panel::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,87,217,.28) 0%, transparent 70%);
  pointer-events: none;
}

.brand-panel::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,87,217,.15) 0%, transparent 70%);
  pointer-events: none;
}

.brand-logo {
  height: 104px;
  display: block;
  filter: brightness(0) invert(1);
  position: relative;
  z-index: 1;
}

.brand-content {
  position: relative;
  z-index: 1;
}

.brand-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 20px;
}

.brand-headline {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.03em;
  color: var(--white);
  margin-bottom: 18px;
}

.brand-headline span {
  color: #4da3ff;
}

.brand-body {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  max-width: 340px;
}

.brand-features {
  list-style: none;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.brand-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.65);
  line-height: 1.4;
}

.brand-features li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4da3ff;
  flex-shrink: 0;
  margin-top: 6px;
}

.brand-footer {
  font-size: 12px;
  color: rgba(255,255,255,.3);
  position: relative;
  z-index: 1;
}

/* ── Right: Login panel ────────────────────────────────────────────────────── */
.login-panel {
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
}

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

.login-heading {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--ink);
  margin-bottom: 6px;
}

.login-sub {
  font-size: 13.5px;
  color: var(--ink-3);
  margin-bottom: 36px;
}

label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}

.field { margin-bottom: 18px; }

input[type=email],
input[type=password] {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  padding: 11px 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,87,217,.1);
}

input::placeholder { color: #c1c7d0; }

.btn-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 13px;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  margin-top: 8px;
  letter-spacing: .01em;
  transition: background .15s;
}

.btn-login svg { transition: transform .15s; }
.btn-login:hover svg { transform: translateX(3px); }

.btn-login:hover { background: var(--blue-dark); }

.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 9px;
  color: #dc2626;
  font-size: 13px;
  padding: 11px 14px;
  margin-bottom: 20px;
}

.login-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.login-footer a { color: var(--ink-3); text-decoration: none; }
.login-footer a:hover { color: var(--ink); text-decoration: underline; }

/* ── Mobile ───────────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .login-page { grid-template-columns: 1fr; }

  .brand-panel {
    padding: 36px 28px;
    min-height: auto;
  }

  .brand-content { margin: 32px 0 0; }
  .brand-headline { font-size: 1.5rem; }
  .brand-features { display: none; }
  .brand-footer { margin-top: 28px; }

  .login-panel { padding: 44px 28px; }
}
