@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Serif+Display&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #0D1B2A;
  --blue: #1A6FA8;
  --blue-dark: #0F4C75;
  --blue-light: #3AAFDD;
  --ice: #E8F5FC;
  --muted: #6B7E94;
  --danger: #D93025;
  --ok: #1A7F4B;
  --white: #ffffff;
  --radius: 18px;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0D1B2A;
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 10% 50%, rgba(26,111,168,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 90% 20%, rgba(58,175,221,0.2) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(15,76,117,0.4) 0%, transparent 60%);
  pointer-events: none;
}

.login-container {
  position: relative;
  z-index: 1;
  width: min(1000px, 94vw);
  min-height: 580px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
}

.login-left {
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(26,111,168,0.15), rgba(58,175,221,0.05));
  border-right: 1px solid rgba(255,255,255,0.07);
}

.brand-logo {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: white;
  margin-bottom: 30px;
  box-shadow: 0 8px 24px rgba(26,111,168,0.4);
  position: relative;
}

.login-left h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 42px;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
  position: relative;
}

.login-left h1 span {
  color: var(--blue-light);
}

.login-left p {
  font-size: 15.5px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  position: relative;
  max-width: 300px;
}

.features-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.65);
  font-size: 14px;
}

.feature-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-light);
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(58,175,221,0.6);
}

.login-right {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 48px;
}

.login-form {
  width: 100%;
  max-width: 340px;
}

.login-form h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
}

.login-form .subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 7px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-field input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 13px;
  background: #f8fafc;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-field input:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(26,111,168,0.12);
}

.login-btn {
  width: 100%;
  padding: 15px;
  margin-top: 8px;
  border: none;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: white;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  box-shadow: 0 6px 20px rgba(26,111,168,0.4);
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(26,111,168,0.5);
}

.login-btn:active { transform: scale(0.98); }

.error-msg {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--danger);
  padding: 12px 15px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hint-box {
  margin-top: 22px;
  background: #f1f5f9;
  padding: 14px;
  border-radius: 12px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.8;
}

.hint-box strong { color: var(--ink); }

@media (max-width: 800px) {
  .login-container { grid-template-columns: 1fr; min-height: auto; }
  .login-left { display: none; }
  body { padding: 20px; overflow-y: auto; height: auto; min-height: 100vh; }
}

@media (max-width: 420px) {
  body { padding: 14px; }
  .login-right { padding: 28px 22px !important; }
  .login-container { border-radius: 20px; }
}
