* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #f5f5f7;
  color: #1d1d1f;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.container {
  display: flex;
  flex: 1;
  min-height: 100vh;
}
.left-section {
  flex: 1;
  background: white;
  display: flex;
  flex-direction: column;
  padding: 60px 80px;
  min-width: 0;
}
.logo {
  margin-bottom: 60px;
}
.logo img {
  max-width: 230px;
  height: auto;
  cursor: pointer;
}
.login-content {
  max-width: 440px;
  width: 100%;
}
.welcome-title {
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 10px;
}
.welcome-subtitle {
  font-size: clamp(14px, 2vw, 16px);
  color: #86868b;
  margin-bottom: 40px;
}
.welcome-subtitle span {
  font-weight: 600;
  color: #1d1d1f;
}
.form-group {
  margin-bottom: 20px;
}
.form-input {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid #e5e5e7;
  border-radius: 10px;
  font-size: 15px;
  color: #1d1d1f;
  background: white;
  transition: all 0.3s;
}
.form-input:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}
.form-input::placeholder {
  color: #d1d1d6;
}
.help-text {
  font-size: 12px;
  color: #86868b;
  margin-top: 15px;
  line-height: 1.6;
}
.btn-login {
  width: 100%;
  padding: 16px;
  background: #0066cc;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 25px;
}
.btn-login:hover {
  background: #0055b3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}
.btn-login:active {
  transform: translateY(0);
}
.footer {
  margin-top: auto;
  padding-top: 40px;
}
.footer-info {
  font-size: 12px;
  color: #86868b;
  margin-bottom: 20px;
  line-height: 1.6;
}
.social-icons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.social-icons i {
  color: #86868b;
  font-size: 20px;
  cursor: pointer;
  transition: color 0.3s;
}
.social-icons i:hover {
  color: #0066cc;
}
.right-section {
  flex: 1;
  background: #f5f5f7;
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.right-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(0, 102, 204, 0.02) 100%);
  z-index: 1;
}
.right-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Планшеты */
@media (max-width: 1200px) {
  .left-section {
    padding: 50px 60px;
  }
}

/* Планшеты маленькие */
@media (max-width: 1024px) {
  .container {
    flex-direction: column;
  }
  .right-section {
    display: none;
  }
  .left-section {
    padding: 40px;
    min-height: 100vh;
  }
  .login-content {
    max-width: 500px;
    margin: 0 auto;
  }
}

/* Мобильные устройства */
@media (max-width: 768px) {
  .left-section {
    padding: 30px 25px;
  }
  .logo {
    margin-bottom: 40px;
  }
  .logo img {
    max-width: 180px;
  }
  .welcome-subtitle {
    margin-bottom: 30px;
  }
  .help-text br {
    display: none;
  }
  .footer {
    padding-top: 30px;
  }
  .social-icons {
    gap: 15px;
  }
  .social-icons i {
    font-size: 18px;
  }
}

/* Маленькие мобильные */
@media (max-width: 480px) {
  .left-section {
    padding: 20px;
  }
  .logo img {
    max-width: 160px;
  }
  .form-input {
    padding: 13px 15px;
    font-size: 14px;
  }
  .btn-login {
    padding: 14px;
    font-size: 15px;
  }
  .help-text {
    font-size: 11px;
  }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
  .left-section {
    padding: 15px;
  }
  .logo {
    margin-bottom: 30px;
  }
}

/* Альбомная ориентация на мобильных */
@media (max-height: 600px) and (orientation: landscape) {
  .left-section {
    padding: 20px;
  }
  .logo {
    margin-bottom: 20px;
  }
  .logo img {
    max-width: 140px;
  }
  .welcome-title {
    font-size: 24px;
    margin-bottom: 5px;
  }
  .welcome-subtitle {
    margin-bottom: 20px;
  }
  .footer {
    padding-top: 20px;
  }
}
