:root{
  --bg: #eef4f8;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #dbe4ea;
  --primary: #0b617e;
  --primary-dark: #054369;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

*{
  box-sizing: border-box;
}

html, body{
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(11,97,126,.12), transparent 30%),
    radial-gradient(circle at bottom right, rgba(5,67,105,.10), transparent 28%),
    var(--bg);
  color: var(--text);
}

body{
  min-height: 100vh;
}

.login-page{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-shell{
  width: 100%;
  max-width: 1180px;
  min-height: 680px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  background: var(--surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.login-hero{
  position: relative;
  background:
    linear-gradient(135deg, rgba(5,67,105,.86), rgba(11,97,126,.76)),
    url("../images/login-hero.png") center center / cover no-repeat;
  color: var(--white);
  padding: 48px;
  display: flex;
  align-items: stretch;
}

.hero-overlay{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.12), transparent 18%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,.08), transparent 20%);
  pointer-events: none;
}

.hero-content{
  position: relative;
  z-index: 1;
  max-width: 470px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-logo{
  width: 66px;
  height: 66px;
  object-fit: contain;
  margin-bottom: 18px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  padding: 10px;
  backdrop-filter: blur(8px);
}

.hero-tag{
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.login-hero h1{
  margin: 0 0 12px;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.login-hero p{
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,.92);
}

.hero-points{
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.hero-point{
  padding: 13px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 700;
}

.login-panel{
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
}

.panel-head{
  margin-bottom: 24px;
}

.panel-mini{
  display: inline-block;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.login-panel h2{
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.1;
  color: var(--primary-dark);
}

.login-panel p{
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.alert{
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  font-size: 14px;
  font-weight: 600;
}

.login-form{
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.field{
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.field label{
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
}

.field input{
  display: block;
  width: 100%;
  height: 54px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f8fafc;
  padding: 0 16px;
  font-size: 16px;
  color: var(--text);
  outline: none;
  transition: .18s ease;
}

.field input:focus{
  border-color: rgba(11,97,126,.45);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(11,97,126,.10);
}

.btn-primary,
.btn-secondary{
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  transition: .18s ease;
}

.btn-primary{
  margin-top: 4px;
  border: none;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(5,67,105,.18);
}

.btn-primary:hover{
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.btn-secondary{
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}

.btn-secondary:hover{
  border-color: rgba(11,97,126,.28);
  color: var(--primary-dark);
}

.panel-footer{
  margin-top: 22px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 980px){
  .login-page{
    padding: 16px;
  }

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

  .login-hero{
    min-height: 300px;
    padding: 32px 28px;
  }

  .hero-content{
    max-width: 100%;
  }

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

  .login-hero h1{
    font-size: 34px;
  }
}

@media (max-width: 640px){
  .login-page{
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
  }

  .login-shell{
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }

  .login-hero{
    min-height: auto;
    padding: 24px 20px 22px;
  }

  .hero-logo{
    width: 58px;
    height: 58px;
    margin-bottom: 14px;
  }

  .hero-tag{
    margin-bottom: 12px;
    font-size: 11px;
  }

  .login-hero h1{
    font-size: 28px;
    margin-bottom: 10px;
  }

  .login-hero p{
    font-size: 15px;
    line-height: 1.55;
  }

  .hero-points{
    gap: 10px;
    margin-top: 18px;
  }

  .hero-point{
    padding: 11px 13px;
    font-size: 13px;
  }

  .login-panel{
    padding: 24px 20px 28px;
  }

  .panel-head{
    margin-bottom: 18px;
  }

  .login-panel h2{
    font-size: 26px;
  }

  .login-panel p{
    font-size: 14px;
  }

  .field input{
    height: 52px;
    font-size: 16px;
  }

  .btn-primary,
  .btn-secondary{
    min-height: 50px;
    font-size: 15px;
  }

  .panel-footer{
    margin-top: 18px;
    font-size: 12px;
  }
}