/* login page*/



/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ ЛОГИНА ===== */

body.login-page {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin: 0;
  max-width: none;
}

.login-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 35px;
  width: 100%;
  max-width: 380px;
  animation: slideUp 0.6s ease-out;
  text-align: center;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-logo {
  text-align: center;
  margin-bottom: 25px;
}

.login-logo-text {
  font-size: 28px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 5px;
  letter-spacing: -0.5px;
}

.login-logo-subtitle {
  font-size: 13px;
  color: #718096;
  font-weight: 400;
}

.login-form-group {
  margin-bottom: 18px;
  text-align: left;
}

.login-form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #4a5568;
  margin-bottom: 6px;
}

.login-form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.3s ease;
  background: #f7fafc;
  box-sizing: border-box;
}

.login-form-input:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-form-input::placeholder {
  color: #a0aec0;
  font-size: 14px;
}

.login-button {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.login-button:active {
  transform: translateY(0);
}

.login-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.login-error-message {
  background: #fed7d7;
  color: #c53030;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-top: 12px;
  border-left: 4px solid #fc8181;
  display: none;
  text-align: left;
}

.login-error-message.show {
  display: block;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.login-loading-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid #ffffff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.login-input-icon {
  position: relative;
}

.login-input-icon::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background-size: contain;
  opacity: 0.5;
}

.login-input-icon.email::before {
  content: '📧';
  font-size: 14px;
}

.login-input-icon.password::before {
  content: '🔒';
  font-size: 14px;
}

.login-input-icon .login-form-input {
  padding-left: 42px;
}

@media (max-width: 480px) {
  .login-container {
    padding: 25px 20px;
    margin: 15px;
    max-width: 90%;
  }
  
  .login-logo-text {
    font-size: 24px;
  }
  
  .login-form-input {
    font-size: 16px; /* Предотвращает зум на iOS */
  }
}
  