html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f5f7fb;
  overflow: hidden;
  color: #1f2937;
  box-sizing: border-box;
  overflow-y: auto;
}

body {
  opacity: 1;
  transition: opacity 0.25s ease;
}

body.page-out {
  opacity: 0;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* layout */
.container {
  display: flex;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

/* divider 
.container::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 38%;
  width: 1px;
  background: rgba(0, 0, 0, 0.08);
  z-index: 10;
  transform: translateX(-0.5px);
}*/

/*
.container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 38%;
  width: 30px; 🔥 было 200px → стало тоньше 

  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2;

   более мягкий и короткий переход 
  background: linear-gradient(
    to right,
    rgba(240, 248, 255, 0.9) 0%,
    rgba(245, 247, 251, 0.6) 40%,
    rgba(245, 247, 251, 0.15) 70%,
    rgba(255, 255, 255, 0) 100%
  );
}*/

.left, .right {
  transition: all 0.3s ease;
}

/* LEFT */
.left {
  flex: 0 0 38%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;

  /* 💙 мягкий светло-голубой фон */
  background: linear-gradient(
    180deg,
    #f0f8ff 0%,
    #e6f2ff 50%,
    #f7fbff 100%
  );

  position: relative;
  z-index: 1;
  color: #1d4ed8;
}

.left::before {
  content: "";
  position: absolute;
  inset: 0;

  background: radial-gradient(
    circle at 30% 30%,
    rgba(59, 130, 246, 0.12),
    transparent 60%
  );

  pointer-events: none;
}

/* RIGHT */
.right {
  width: 62%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

/* background image (уменьшен blur) */
.right::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/background.jpg") center/cover no-repeat;

  filter: blur(3px) brightness(1.08) saturate(1.1);
  opacity: 0.28;

  transform: scale(1.06);

  /* 🔥 ключ: убираем “резкий край” */
  -webkit-mask-image: linear-gradient(
    to left,
    rgba(0,0,0,1) 85%,
    rgba(0,0,0,0)
  );
  mask-image: linear-gradient(
    to left,
    rgba(0,0,0,1) 85%,
    rgba(0,0,0,0)
  );

  z-index: 0;
}

.form-inner {
  width: 100%;
  max-width: 300px; /* 🔥 контролирует ширину формы */
  min-width: 150px;
  margin: 0 auto;
}

.view {
  align-items: center;
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;

  opacity: 0;
  transform: translateX(40px);
  transition: all 0.35s ease;
  pointer-events: none;
}

.view.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

/* card */
.login-box,
.right-content {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 450px;
  min-width: 350px;
  
  min-height: 360px;
  
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background: #ffffff;
  border-radius: 14px;

  padding: 40px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);

  transition: transform 0.2s ease, box-shadow 0.2s ease;

  /* 🔵 основной синий текст */
  color: #1d4ed8;
}

.login-box:hover,
.right-content:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
}

/* logo */
.logo {
  text-align: center;
  color: #1d4ed8; /* 🔵 синий */
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 20px;
}

.countdown {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.count-item {
  text-align: center;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 65px;
}

.count-item span {
  display: block;
  font-size: 20px;
  font-weight: 600;
  color: #1d4ed8;
}

.count-item small {
  font-size: 11px;
  color: #6b7280;
}

/* inputs */
input {
  width: 100%;
  padding: 12px 14px;
  margin: 10px 0;

  border: 1px solid #e5e7eb;
  border-radius: 10px;

  background: #f9fafb;

  font-size: 14px;

  transition: 0.2s ease;
}

input:focus {
  outline: none;
  border-color: #3b82f6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* button */
.btn {
  width: 100%;
  padding: 12px 14px;
  margin-top: 12px;

  border: none;
  border-radius: 10px;

  background: #1d4ed8;
  color: white;

  font-weight: 500;
  font-size: 14px;

  cursor: pointer;

  transition: 0.2s ease;
}

.btn:hover {
  background: #1e40af;
}

.btn:active {
  transform: scale(0.98);
}

/* links */
.hint {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: #1d4ed8; /* 🔵 синий */
  text-decoration: none;
}

/* error */
.error-message {
  display: none;
  background: #fef2f2;
  color: #b91c1c;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 10px;
  border: 1px solid #fecaca;
}

.error-message.show {
  display: block;
}

/* info box */
.info-box {
  margin-top: 20px;
  padding: 18px;

  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.06);

  border-radius: 12px;

  font-size: 14px;

  color: #1d4ed8; /* 🔵 синий текст */
}

.info-box h3 {
  margin: 0 0 6px 0;
  font-size: 15px;
  color: #1d4ed8;
}

.info-box p {
  margin: 0;
  color: #2563eb;
  font-size: 13px;
}

/* error input */
input.error {
  border-color: #ef4444;
  background: #fff5f5;
}

/* responsive */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    height: auto;
  }

  .left, .right {
    width: 100%;
    height: auto;
    padding: 16px;
  }

  .left {
    align-items: flex-start;
    justify-content: flex-start;
  }

  /* 🔥 форма не растягивается на весь экран */
  .login-box {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .form-inner {
    max-width: 100%;
  }

  input {
    width: 100%;
  }
}